Skip to content

Commit 02c197d

Browse files
patch the yaw=0 direction while expanding
1 parent 7f3031d commit 02c197d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/HybridAStar/hybrid_a_star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def __init__(self, ox, oy, xyreso, yawreso):
131131

132132
def calc_motion_inputs():
133133

134-
for steer in np.linspace(-MAX_STEER, MAX_STEER, N_STEER):
134+
for steer in np.concatenate((np.linspace(-MAX_STEER, MAX_STEER, N_STEER),[0.0])):
135135
for d in [1, -1]:
136136
yield [steer, d]
137137

0 commit comments

Comments
 (0)