Skip to content

Commit 24264ae

Browse files
committed
Testing Global frame
1 parent 3acfccb commit 24264ae

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

GEMstack/onboard/planning/mission_planning.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def update(self, state: AllState):
9696
goal_location = None
9797
goal_frame = None
9898
else:
99-
goal_location = [data['lat'] , data['lon']]
99+
goal_location = [data['lon'] , data['lat']]
100100
goal_frame = 'global'
101101
print("Goal location:", goal_location)
102102
print("Goal frame:", goal_frame)
@@ -130,8 +130,9 @@ def update(self, state: AllState):
130130
# self.goal_pose = self.goal_pose.to_frame(ObjectFrameEnum.START, start_pose_abs=state.start_vehicle_pose)
131131

132132
# For global map test in simulation only
133-
start_pose_global = ObjectPose(frame=ObjectFrameEnum.GLOBAL, t=time.time(), x=-88.235968, y=40.0927432, yaw=1.507)
133+
start_pose_global = ObjectPose(frame=ObjectFrameEnum.GLOBAL, t=time.time(), x=-88.235968, y=40.0927432, yaw=1.57079633)
134134
self.goal_pose = self.goal_pose.to_frame(ObjectFrameEnum.START, start_pose_abs=start_pose_global)
135+
print("Goal pose:", self.goal_pose)
135136

136137
# Initiate state
137138
if mission is None:

GEMstack/onboard/planning/route_planning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def update(self, state: AllState):
291291
# self.roadgraph = self.roadgraph.to_frame(ObjectFrameEnum.START, start_pose_abs=state.start_vehicle_pose)
292292

293293
# For global map test in simulation only
294-
start_pose_global = ObjectPose(frame=ObjectFrameEnum.GLOBAL, t=time.time(), x=-88.235968, y=40.0927432, yaw=1.507)
294+
start_pose_global = ObjectPose(frame=ObjectFrameEnum.GLOBAL, t=time.time(), x=-88.235968, y=40.0927432, yaw=1.57079633)
295295
self.roadgraph = self.roadgraph.to_frame(ObjectFrameEnum.START, start_pose_abs=start_pose_global)
296296

297297
# Get all the points of lanes

launch/summoning.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ drive:
1919
mission_planning:
2020
type: SummoningMissionPlanner
2121
args:
22-
use_webapp: True # goal should be defined when use_webapp is false
22+
use_webapp: False # goal should be defined when use_webapp is false
2323
webapp_url: 'https://summon-app-production.up.railway.app/'
2424
# Goal test points for summoning_roadgraph_sim.json, frame is 'start' or 'cartesian'.
2525
# Key points:[0, 0], [0, 30], [37.5, 7.5], [33, 12],[28.5, 7.5],[15, 3], [1.5, 7.5], [15, 12], [-3, 12], [-7.5, 7.5]
2626
# Points not in the lane:[15, -3], [15, 6], [15, 9], [15, 15]
2727
# Goal test points for summoning_roadgraph_highbay.json, frame is 'global'.
2828
# Key points: [-88.235317, 40.0927934], [-88.235252, 40.0927527], [-88.235164, 40.0927934], [-88.235211, 40.0928573],
2929
# [-88.235527, 40.0927436], [-88.235968, 40.0927432], [-88.236046, 40.0927917], [-88.236008, 40.0928604], [-88.235905, 40.0927917]
30-
goal: {'location':[32.5, 12], 'frame':'cartesian'}
30+
goal: {'location':[-88.235527, 40.0927436], 'frame':'global'}
31+
# goal: {'location':[32.5, 12], 'frame':'cartesian'}
3132
# goal: {'location':[5, -3], 'frame':'cartesian'}
3233
# state_machine: [MissionEnum.IDLE, MissionEnum.SUMMONING_DRIVE, MissionEnum.PARALLEL_PARKING]
3334
state_machine: [MissionEnum.IDLE, MissionEnum.SUMMON_DRIVING, MissionEnum.PARALLEL_PARKING]

0 commit comments

Comments
 (0)