Skip to content

Commit c6d6052

Browse files
Added code template for saving camera and lidar data
1 parent 7aa57f1 commit c6d6052

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

GEMstack/onboard/perception/capture_lidar_camera_data.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
import time
1818

1919

20-
class PedestrianDetector2D(Component):
21-
"""
22-
Detects pedestrians using YOLO and LiDAR to estimate 3D pose.
23-
This version uses message_filters to synchronize the image and LiDAR data.
24-
The synchronized callback stores the latest sensor data, and heavy processing is done in update().
25-
"""
20+
class SaveInspectionData(Component):
2621

2722
def __init__(self, vehicle_interface: GEMInterface):
2823
self.vehicle_interface = vehicle_interface

launch/inspection.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@ recovery:
1212
drive:
1313
perception:
1414
state_estimation : GNSSStateEstimator
15-
agent_detection : pedestrian_detection.PedestrianDetector2D
15+
agent_detection : capture_lidar_camera_data.SaveInspectionData
1616
perception_normalization : StandardPerceptionNormalizer
1717
planning:
1818
relations_estimation: pedestrian_yield_logic.PedestrianYielder
1919
route_planning:
20-
type: StaticRoutePlanner
21-
args: [!relative_path '../GEMstack/knowledge/routes/xyhead_highbay_backlot_oval.csv','start']
20+
type: InspectRoutePlanner
21+
args:
22+
geofence_area: [[0,0],[20,20]]
2223
motion_planning:
23-
type: longitudinal_planning.YieldTrajectoryPlanner
24+
type: rrt_planner
2425
args:
2526
mode: 'real'
26-
params: {
27-
'planner': 'dt', # 'milestone', 'dt', or 'dx'
28-
'desired_speed': 1.0, # m/s, 1.5 m/s seems max speed? Feb24
29-
'acceleration': 0.75 # m/s2, 0.5 is not enough to start moving. Feb24
30-
}
3127
trajectory_tracking:
3228
type: pure_pursuit.PurePursuitTrajectoryTracker
3329
print: False

0 commit comments

Comments
 (0)