Skip to content

Commit 422b017

Browse files
author
maoyifei
committed
small fix
1 parent 922703b commit 422b017

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

GEMstack/onboard/planning/parking_route_planner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ def __init__(self):
444444
# self.planner = ParkingSolverSecondOrderDubins()
445445
self.planner = ParkingSolverFirstOrderDubins()
446446

447-
self.iterations = settings.get("planning.astar.iterations", 2000)
447+
# self.iterations = settings.get("planning.astar.iterations", 2000)
448+
self.iterations = settings.get("run.drive.planning.route_planning_component.astar.iterations", 50000)
448449
self.parking_success = False
449450
self.velocity_threshold = 0.1 # m/s
450451
self.orientation_threshold = math.radians(10) # 10 degrees
@@ -713,7 +714,7 @@ def update(self, state : AllState) -> Route:
713714
# Measure planning time
714715
planner_start_time = time.time()
715716
# Compute the new trajectory and return it
716-
res = list(self.planner.astar(start_state, goal_state, reversePath=False, iterations=self.iterations))
717+
res = list(self.planner.astar(start, goal, reversePath=False, iterations=self.iterations))
717718
planning_time = time.time() - planner_start_time
718719

719720
points = []

0 commit comments

Comments
 (0)