Skip to content

Commit 12fc986

Browse files
author
Videh Patel
committed
Undid debugging changes
1 parent 34525ad commit 12fc986

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

PathPlanning/ReedsSheppPath/reeds_shepp_path_planning.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ def generate_path(q0, q1, max_curvature, step_size):
297297
left_straight_right90_x_left, left_straight_left90_x_right, # CSCC
298298
left_x_right90_straight_left90_x_right] # CCSCC
299299

300-
path_functions = [left_right_x_left_right]
301300
for path_func in path_functions:
302301
flag, travel_distances, steering_dirns = path_func(x, y, dth)
303302
if flag:
@@ -319,7 +318,6 @@ def generate_path(q0, q1, max_curvature, step_size):
319318
steering_dirns = reflect(steering_dirns)
320319
paths = set_path(paths, travel_distances, steering_dirns, step_size)
321320

322-
print(paths)
323321
return paths
324322

325323

@@ -420,15 +418,15 @@ def reeds_shepp_path_planning(sx, sy, syaw, gx, gy, gyaw, maxc, step_size=0.2):
420418
def main():
421419
print("Reeds Shepp path planner sample start!!")
422420

423-
start_x = 0.0 # [m]
424-
start_y = 0.0 # [m]
425-
start_yaw = np.deg2rad(0.0) # [rad]
421+
start_x = -1.0 # [m]
422+
start_y = -4.0 # [m]
423+
start_yaw = np.deg2rad(-20.0) # [rad]
426424

427-
end_x = 1.5 # [m]
428-
end_y = 0.8 # [m]
429-
end_yaw = np.deg2rad(180.0) # [rad]
425+
end_x = 5.0 # [m]
426+
end_y = 5.0 # [m]
427+
end_yaw = np.deg2rad(25.0) # [rad]
430428

431-
curvature = 1
429+
curvature = 0.1
432430
step_size = 0.05
433431

434432
xs, ys, yaws, modes, lengths = reeds_shepp_path_planning(start_x, start_y,

0 commit comments

Comments
 (0)