Skip to content

Commit d4c3c95

Browse files
committed
hi
1 parent 335edfb commit d4c3c95

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

GEMstack/onboard/planning/parking_planning.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def __init__(self, vehicle=None, obstacles=None, actions=None):
2626
self._vehicle = None
2727

2828
# SecondOrderDubinsCar() #x = (tx,ty,theta,v,dtheta) and u = (fwd_accel,wheel_angle_rate)
29-
self.vehicle_sim = IntegratorControlSpace(SecondOrderDubinsCar(), T=0.5, dt=0.1)
29+
self.vehicle_sim = IntegratorControlSpace(SecondOrderDubinsCar(), T=0.75, dt=0.25)
3030
#@TODO create a more standardized way to define the actions
31-
self._actions = [(2, -1), (2, -0.5), (2,0), (2, 0.5), (2,1),
32-
(-1, -0.5), (-1,0), (-1, 0.5)]
31+
self._actions = [(1, -0.5), (1, -0.25), (1,0), (1, 0.25), (1,0.5),
32+
(0,0), (-1, -0.5), (-1,0), (-1, 0.5)]
3333

3434
@property
3535
def vehicle(self):
@@ -60,8 +60,8 @@ def is_goal_reached(self, current: List[float], goal: List[float]):
6060
# @TODO Currently, the threshold is just a random number, get rid of magic constants
6161
# print(f"Current Pose: {current}")
6262
# print(f"Goal Pose: {goal}")
63-
if np.abs(current[3]) > 0: return False # car must be stopped, this equality will only work in simulation
64-
return np.linalg.norm(np.array([current[0], current[1]]) - np.array([goal[0], goal[1]])) < 1
63+
if np.abs(current[3]) > 0.5: return False # car must be stopped, this equality will only work in simulation
64+
return np.linalg.norm(np.array([current[0], current[1]]) - np.array([goal[0], goal[1]])) < 0.5
6565
vehicle
6666
def heuristic_cost_estimate(self, vehicle_state_1, vehicle_state_2):
6767
# @TODO Consider creating a more sophisticated heuristic

0 commit comments

Comments
 (0)