How gangheejo/fmtc_intern works
This repository is a ROS 2 stack for an S1 autonomous RC car. Camera and lidar nodes produce perception and motion inputs; decision_auto combines obstacle, stop-signal, and lane commands, while joystick control feeds the mode-selecting cmd_mux. Its output is serialized to the vehicle controller. Separate gap-follow and wall-follow nodes provide alternative lidar-driving behaviors. The README documents the principal topic flow and capabilities; lidar SDK internals are only partly sampled, so their internal edges are limited to visible references.
Main entry points: decision_auto.py Auto decision · cmd_mux.py Mode command mux · sllidar_node.cpp ROS lidar driver · lane_trace.py Lane tracing
Components 17
Camera perception
- Lane tracing
lane_trace/lane_trace/lane_trace.py - Sign detection
sign_detect/sign_detect/sign_detect.py
Lidar sensing
- ROS lidar driver
sllidar_ros2/src/sllidar_node.cpp
Driving behaviors
- Obstacle evasion
obs_evade/obs_evade/obs_evade.py - Gap following
gap_follow/gap_follow/gap_follow.py - Wall following
wall_follow/wall_follow/wall_follow.py - Auto decision
s1_stack/s1_stack/decision_auto.py
Vehicle control
- Manual command
s1_stack/s1_stack/joy_to_twist.py - Mode command mux
s1_stack/s1_stack/cmd_mux.py - Serial sender
s1_stack/s1_stack/serial_sender.py
Lidar SDK
- SDK driver
sllidar_ros2/sdk/src/sl_lidar_driver.cpp - Scan unpacking
sllidar_ros2/sdk/src/dataunpacker/dataunpacker.cpp
Other components
- Camera topics
- RPLidar device
- Laser scan topic
- Joystick
- Arduino controller
Connections 20
- Camera topics → Lane tracing: publishes images
- Camera topics → Sign detection: publishes images
- Lane tracing → Auto decision: publishes lane command
- Sign detection → Auto decision: publishes stop flags
- RPLidar device → ROS lidar driver: sends measurements
- ROS lidar driver → SDK driver: uses SDK API
sllidar_ros2/src/sllidar_node.cpp - SDK driver → Scan unpacking: uses unpacker
sllidar_ros2/sdk/src/sl_lidar_driver.cpp - ROS lidar driver → Laser scan topic: publishes scan
- Laser scan topic → Obstacle evasion: feeds scan
- Laser scan topic → Gap following: feeds scan
- Laser scan topic → Wall following: feeds scan
- Obstacle evasion → Auto decision: publishes obstacle command
- Joystick → Manual command: publishes input
- Manual command → Mode command mux: publishes manual command
- Joystick → Mode command mux: selects mode
- Auto decision → Mode command mux: publishes auto command
- Mode command mux → Serial sender: publishes output command
- Serial sender → Arduino controller: sends serial protocol
- Gap following → Auto decision: publishes auto command
- Wall following → Auto decision: publishes auto command