Skip to content

Commit d9ee56e

Browse files
authored
Merge pull request AtsushiSakai#155 from tks10/master
Fixed a bug of calculating parameters in pure pursuit module
2 parents 9afe37e + 9461aa0 commit d9ee56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathTracking/pure_pursuit/pure_pursuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def calc_target_index(state, cx, cy):
8585
# search look ahead target point index
8686
while Lf > L and (ind + 1) < len(cx):
8787
dx = cx[ind + 1] - cx[ind]
88-
dy = cx[ind + 1] - cx[ind]
88+
dy = cy[ind + 1] - cy[ind]
8989
L += math.sqrt(dx ** 2 + dy ** 2)
9090
ind += 1
9191

0 commit comments

Comments
 (0)