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.
2 parents 9afe37e + 9461aa0 commit d9ee56eCopy full SHA for d9ee56e
PathTracking/pure_pursuit/pure_pursuit.py
@@ -85,7 +85,7 @@ def calc_target_index(state, cx, cy):
85
# search look ahead target point index
86
while Lf > L and (ind + 1) < len(cx):
87
dx = cx[ind + 1] - cx[ind]
88
- dy = cx[ind + 1] - cx[ind]
+ dy = cy[ind + 1] - cy[ind]
89
L += math.sqrt(dx ** 2 + dy ** 2)
90
ind += 1
91
0 commit comments