Skip to content

Commit 3af73a4

Browse files
committed
Added cones for simulation. Will need to be changed because cones are becoming obstacles.
1 parent 39c7663 commit 3af73a4

2 files changed

Lines changed: 34 additions & 5 deletions

File tree

GEMstack/onboard/interface/gem_simulator.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,35 @@
1919
'bicyclist' : (1.8,0.5,1.6),
2020
'car' : (4.0,2.5,1.4),
2121
'medium_truck': (6.0,2.5,3.0),
22-
'large_truck': (10.0,2.5,3.5)
22+
'large_truck': (10.0,2.5,3.5),
23+
'cone' : (0.5,0.5,1.0)
2324
}
2425

2526
AGENT_TYPE_TO_ENUM = {
2627
'pedestrian' : AgentEnum.PEDESTRIAN,
2728
'bicyclist' : AgentEnum.BICYCLIST,
2829
'car' : AgentEnum.CAR,
2930
'medium_truck': AgentEnum.MEDIUM_TRUCK,
30-
'large_truck': AgentEnum.LARGE_TRUCK
31+
'large_truck': AgentEnum.LARGE_TRUCK,
32+
'cone' : AgentEnum.CONE
3133
}
3234

3335
AGENT_NOMINAL_VELOCITY = {
3436
'pedestrian' : 1.5,
3537
'bicyclist' : 5.0,
3638
'car' : 20.0,
3739
'medium_truck': 15.0,
38-
'large_truck': 10.0
40+
'large_truck': 10.0,
41+
'cone' : 0.0
3942
}
4043

4144
AGENT_NOMINAL_ACCELERATION = {
4245
'pedestrian' : 2.0,
4346
'bicyclist' : 2.0,
4447
'car' : 5.0,
4548
'medium_truck': 3.0,
46-
'large_truck': 2.0
49+
'large_truck': 2.0,
50+
'cone' : 0.0
4751
}
4852

4953
class AgentSimulation:

launch/parking_detection.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ variants:
9292
type: gem_simulator.GEMDoubleIntegratorSimulationInterface
9393
args:
9494
scene: !relative_path '../scenes/parking_demo.yaml'
95-
# visualization: !include "klampt_visualization.yaml"
95+
visualization: !include "klampt_visualization.yaml"
9696

9797
drive:
9898
perception:
@@ -114,6 +114,31 @@ variants:
114114
parking_detection: parking_detection.ParkingSpotsDetector3D
115115
perception_normalization : StandardPerceptionNormalizer
116116

117+
planning:
118+
parking_component:
119+
type: ParkingSim
120+
route_planning_component:
121+
type: RoutePlanningComponent
122+
123+
trajectory_tracking:
124+
type: pure_pursuit.PurePursuitTrajectoryTracker
125+
print: True
126+
127+
fake_sim: # full pipeline w/ fake perception
128+
run:
129+
mode: simulation
130+
vehicle_interface:
131+
type: gem_simulator.GEMDoubleIntegratorSimulationInterface
132+
args:
133+
scene: !relative_path '../scenes/parking_demo.yaml'
134+
visualization: !include "klampt_visualization.yaml"
135+
136+
drive:
137+
perception:
138+
state_estimation : OmniscientStateEstimator
139+
agent_detection : OmniscientAgentDetector
140+
141+
117142
planning:
118143
parking_component:
119144
type: ParkingSim

0 commit comments

Comments
 (0)