@@ -26,7 +26,7 @@ def state_inputs(self):
2626 return ["all" ]
2727
2828 def state_outputs (self ) -> List [str ]:
29- return ['trajectory ' ]
29+ return ['route ' ]
3030
3131 def rate (self ):
3232 return 10.0 # very high for our computation ability
@@ -44,12 +44,14 @@ def update(self, state: AllState):
4444 if state .mission_plan .planner_type .name == "PARKING" :
4545 print ("I am in PARKING mode" )
4646 # Not sure where I should construct this object
47- if isinstance (self .planner , StraightLineMotion ): # we are transitioning from scanning to parking
47+ # if isinstance(self.planner, StraightLineMotion): # we are transitioning from scanning to parking
4848
49- # Check if the car is still in motion from scanning behavior
50- # if it is, we need to stop it before parking
51- self .planner .brake () # get car totally stopped before parking
52- state .vehicle .pose .yaw = 0 # needed this to avoid a weird error in the parking planner
49+ # # Check if the car is still in motion from scanning behavior
50+ # # if it is, we need to stop it before parking
51+
52+ # # print("I AM BRAKING")
53+ # self.planner.brake() # get car totally stopped before parking
54+ state .vehicle .pose .yaw = 0 # needed this to avoid a weird error in the parking planner
5355
5456 self .planner = ParkingPlanner ()
5557
@@ -72,11 +74,11 @@ def update(self, state: AllState):
7274 # print("Vehicle y:", state.vehicle.pose.y)
7375 # print("Vehicle yaw:", state.vehicle.pose.yaw)
7476 desired_points = [(state .vehicle .pose .x , state .vehicle .pose .y ),
75- (state .vehicle .pose .x + 10 , state .vehicle .pose .y )]
77+ (state .vehicle .pose .x + 1 , state .vehicle .pose .y )]
7678 desired_path = Path (state .vehicle .pose .frame , desired_points )
7779
7880 # @TODO these are constants we need to get from settings
79- return longitudinal_plan ( desired_path , 1 , 1 , 3 , state . vehicle . v )
81+ return desired_path
8082 # self.planner.update_speed()
8183
8284 # We want to just go straight
0 commit comments