Skip to content

Commit

Permalink
Merge pull request #155 from tks10/master
Browse files Browse the repository at this point in the history
Fixed a bug of calculating parameters in pure pursuit module
  • Loading branch information
AtsushiSakai committed Jan 15, 2019
2 parents 9afe37e + 9461aa0 commit d9ee56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PathTracking/pure_pursuit/pure_pursuit.py
Expand Up @@ -85,7 +85,7 @@ def calc_target_index(state, cx, cy):
# search look ahead target point index
while Lf > L and (ind + 1) < len(cx):
dx = cx[ind + 1] - cx[ind]
dy = cx[ind + 1] - cx[ind]
dy = cy[ind + 1] - cy[ind]
L += math.sqrt(dx ** 2 + dy ** 2)
ind += 1

Expand Down

0 comments on commit d9ee56e

Please sign in to comment.