@@ -297,7 +297,6 @@ def generate_path(q0, q1, max_curvature, step_size):
297
297
left_straight_right90_x_left , left_straight_left90_x_right , # CSCC
298
298
left_x_right90_straight_left90_x_right ] # CCSCC
299
299
300
- path_functions = [left_right_x_left_right ]
301
300
for path_func in path_functions :
302
301
flag , travel_distances , steering_dirns = path_func (x , y , dth )
303
302
if flag :
@@ -319,7 +318,6 @@ def generate_path(q0, q1, max_curvature, step_size):
319
318
steering_dirns = reflect (steering_dirns )
320
319
paths = set_path (paths , travel_distances , steering_dirns , step_size )
321
320
322
- print (paths )
323
321
return paths
324
322
325
323
@@ -420,15 +418,15 @@ def reeds_shepp_path_planning(sx, sy, syaw, gx, gy, gyaw, maxc, step_size=0.2):
420
418
def main ():
421
419
print ("Reeds Shepp path planner sample start!!" )
422
420
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]
426
424
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]
430
428
431
- curvature = 1
429
+ curvature = 0. 1
432
430
step_size = 0.05
433
431
434
432
xs , ys , yaws , modes , lengths = reeds_shepp_path_planning (start_x , start_y ,
0 commit comments