Skip to content

Commit 1c081ed

Browse files
authored
address the comment
1 parent 0de0653 commit 1c081ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/DynamicWindowApproach/dynamic_window_approach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def motion(x, u, dt):
7777
motion model
7878
"""
7979

80+
x[2] += u[1] * dt
8081
x[0] += u[0] * math.cos(x[2]) * dt
8182
x[1] += u[0] * math.sin(x[2]) * dt
82-
x[2] += u[1] * dt
8383
x[3] = u[0]
8484
x[4] = u[1]
8585

0 commit comments

Comments
 (0)