We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4706e4b commit d5d026dCopy full SHA for d5d026d
PathTracking/pure_pursuit/pure_pursuit.py
@@ -87,6 +87,7 @@ def calc_target_index(state, cx, cy):
87
dy = [state.rear_y - icy for icy in cy]
88
d = [abs(math.sqrt(idx ** 2 + idy ** 2)) for (idx, idy) in zip(dx, dy)]
89
ind = d.index(min(d))
90
+ old_nearest_point_index = ind
91
else:
92
index = old_nearest_point_index
93
distance_this_index = calc_distance(state, cx[index], cy[index])
0 commit comments