How nonenpc/smartcar works
Origincar is a ROS 2 autonomous-navigation application for a mobile robot. Its principal workflow is sensor input and localization, navigation/control, then fixed-path following; separate vision and operator-display capabilities complement the driving system. The sampled sources show the LiDAR driver’s packet and scan responsibilities, path publisher’s FollowPath client, and display subscriber. Navigation, QR, and language-model implementations were not sampled, so those subsystems are represented at their documented package level; their internal connections are not inferred.
Main entry points: race.launch.py Race launch · lslidar_driver.cc LiDAR driver · origincar_nav SLAM localization · display_info.py Information display
Components 16
System orchestration
- Race launch
tools/race.launch.py - Origincar base
Sensing and perception
- LiDAR device
- LiDAR driver
LSLIDAR_X_ROS2-20240228/src/lslidar_driver/src/lslidar_driver.cc - Packet input
LSLIDAR_X_ROS2-20240228/src/lslidar_driver/src/input.cc - Serial I/O
LSLIDAR_X_ROS2-20240228/src/lslidar_driver/src/lsiosr.cpp
Navigation and control
- SLAM localization
origincar_nav - Nav2 control
origincar_nav - Fixed-path publisher
pub_plan/src/pub_plan.cpp - Path recording
tools/record_path
Vision tasks
- QR recognition
qr_code_recognition/src/qr_code_recognition.cpp - YOLO segmentation
image_cut/src/yolov11_detector.cpp - Image understanding
ollama_image_understanding/ollama_image_understanding/ollama_understanding.py
Operator output
- Information display
display_info/display_info/display_info.py - Display panel
Other components
- Robot operator
Connections 19
- Robot operator → Race launch: starts system
- Race launch → Origincar base: starts
- Race launch → SLAM localization: includes navigation
tools/race.launch.py - Race launch → Fixed-path publisher: includes path launch
tools/race.launch.py - Race launch → QR recognition: includes QR launch
tools/race.launch.py - Race launch → Information display: includes display launch
tools/race.launch.py - LiDAR device → LiDAR driver: sends packets
- LiDAR driver → Packet input: reads packets
- LiDAR driver → Serial I/O: uses serial I/O
- LiDAR driver → SLAM localization: provides scan data
- SLAM localization → Nav2 control: provides pose
- Nav2 control → Origincar base: controls motion
- Fixed-path publisher → Nav2 control: sends FollowPath goal
pub_plan/src/pub_plan.cpp - Robot operator → Path recording: records routes
- LiDAR device → YOLO segmentation: provides image input
- QR recognition → Robot operator: reports recognition
- Image understanding → Robot operator: returns interpretation
- Robot operator → Information display: publishes display text
- Information display → Display panel: renders text
display_info/display_info/display_info.py