How ashutoshclg167-commits/autonomous-stack-sdc works
Autonomous Stack SDC is a ROS 2 driverless-vehicle pipeline. Its documented real-car path turns camera and LiDAR inputs into fused, mapped cone coordinates, plans a midpoint path, converts path geometry into steering error, and emits Ackermann control. The graph preserves the optional calibration overlay, odometry input, and the package’s alternate planning and YOLO 3D-detection components. Most runtime links follow the README’s topic flow; source excerpts confirm selected node interfaces, but several subsystem implementations were not sampled.
Main entry points: fusion_node.py Cone Fusion · deadReckoning.cpp Dead Reckoning · coloredMapping.cpp Colored Mapping · yolo_node.py YOLO Detection
Components 17
Perception
- Ground Removal
perception/lidar/ground-removal/src/lu.cpp - LiDAR Clustering
perception/lidar/clustering/src/boundaryscan.cpp - YOLO Detection
perception/camera/yolo_ros/yolo_ros/yolo_ros/yolo_node.py - 3D Detection
perception/camera/yolo_ros/yolo_ros/yolo_ros/detect_3d_node.py - Cone Fusion
perception/sensorfusion/sensorfusion/nodes/fusion_node.py - Debug Overlay
perception/sensorfusion/sensorfusion/nodes/debug_overlay.py - Coordinate Conversion
perception/sensorfusion/sensorfusion/nodes/coord_to_arr.py
State and Mapping
- Dead Reckoning
slam/core/odometry/src/deadReckoning.cpp - Colored Mapping
slam/core/mapping1/src/coloredMapping.cpp
Path Planning
- Colored Midpoint Planner
path_planning1/src/midPointColored.cpp - Midpoint Planner
path_planning1/src/midPoint.cpp - Path Error
path_planning1/src/midPointErrorPropogator.cpp
Control
- PID Controller
control/src/pid.cpp
Other components
- OAK-D Camera
- RS-LiDAR
- Velocity and IMU
- Vehicle Command
Connections 19
- OAK-D Camera → YOLO Detection: supplies images
- RS-LiDAR → Ground Removal: supplies point cloud
- Ground Removal → LiDAR Clustering: filters ground
- LiDAR Clustering → Cone Fusion: provides clusters
- YOLO Detection → Cone Fusion: provides detections
- OAK-D Camera → Cone Fusion: provides camera info
- Cone Fusion → Coordinate Conversion: publishes fused cones
- Cone Fusion → Debug Overlay: visualizes fusion
- Velocity and IMU → Dead Reckoning: provides velocity and IMU
slam/core/odometry/src/deadReckoning.cpp - Coordinate Conversion → Colored Mapping: provides cone coordinates
- Dead Reckoning → Colored Mapping: provides odometry
- Colored Mapping → Colored Midpoint Planner: provides cone map
- Dead Reckoning → Colored Midpoint Planner: provides odometry
- Colored Midpoint Planner → Path Error: publishes cone pair
- Dead Reckoning → Path Error: provides odometry
path_planning1/src/midPointErrorPropogator.cpp - Path Error → PID Controller: publishes path error
- PID Controller → Vehicle Command: publishes drive command
control/src/pid.cpp - Colored Mapping → Midpoint Planner: provides map input
- YOLO Detection → 3D Detection: supplies detections