How yunsu0210/autopilot works
This is a ROS-based Jetson car-autopilot workspace for a Traxxas vehicle. Its principal workflow consumes keyboard commands, LDS-01 laser scans, camera frames, and object-detection bounding boxes; the listener combines these inputs into steering and speed commands sent through a PCA9685 controller. The tree also documents standalone image-processing and lidar-subscriber exercises, and includes earlier listener variants. The README confirms the hardware, but provides little behavioral detail; relationships for unsampled scripts and integrations are therefore limited to documented or excerpted evidence.
Main entry points: listener.cpp ROS listener · JHPWMPCA9685.cpp PCA9685 driver · backup Earlier controllers · listener_yh.cpp Alternate listener
Components 20
ROS Vehicle Control
- ROS listener
src/ros_cpp_test/src/listener.cpp - Scan navigation
src/ros_cpp_test/src/listener.cpp - Detection handling
src/ros_cpp_test/src/listener.cpp - Earlier controllers
src/ros_cpp_test/src/backup - Alternate listener
src/ros_cpp_test/src/listener_yh.cpp
Vision Processing
- Camera callback
src/ros_cpp_test/src/listener.cpp - OpenCV helpers
src/ros_cpp_test/src/OpenCV.cpp
Vehicle Hardware
- PCA9685 driver
src/ros_cpp_test/src/JHPWMPCA9685.cpp - PCA9685 interface
src/ros_cpp_test/src/JHPWMPCA9685.h
ROS Exercises
- Image exercise
src/basics/scripts/image_processing.cpp - Python image exercise
src/basics/scripts/image_processing.py - Delta image exercise
src/basics/scripts/image_processing_delta.cpp - Key publisher
src/basics/scripts/key_publisher.py - Keys to twist
src/basics/scripts/keys_to_twist.py - Lidar subscriber
src/test_lidar/src/hlds_laser_subscribe.py
Other components
- Operator
- LDS-01 lidar
- Webcam
- Object detector
- Traxxas car
Connections 19
- Operator → ROS listener: publishes keys
src/ros_cpp_test/src/listener.cpp - LDS-01 lidar → ROS listener: publishes scan
src/ros_cpp_test/src/listener.cpp - Object detector → ROS listener: publishes boxes
src/ros_cpp_test/src/listener.cpp - Webcam → ROS listener: publishes images
src/ros_cpp_test/src/listener.cpp - ROS listener → Scan navigation: dispatches scan
src/ros_cpp_test/src/listener.cpp - ROS listener → Detection handling: dispatches detections
src/ros_cpp_test/src/listener.cpp - ROS listener → Camera callback: dispatches images
src/ros_cpp_test/src/listener.cpp - Camera callback → OpenCV helpers: uses helpers
- ROS listener → PCA9685 driver: sets PWM
src/ros_cpp_test/src/listener.cpp - PCA9685 driver → Traxxas car: drives actuators
README.md - Earlier controllers → PCA9685 driver: uses interface
src/ros_cpp_test/src/backup/listener.cpp - Alternate listener → PCA9685 driver: uses interface
src/ros_cpp_test/src/listener_yh.cpp - Image exercise → Webcam: processes imagery
- Python image exercise → Webcam: processes imagery
- Delta image exercise → Webcam: processes imagery
- Key publisher → Operator: captures keys
- Keys to twist → ROS listener: maps commands
- Lidar subscriber → LDS-01 lidar: subscribes scans
- PCA9685 interface → PCA9685 driver: declares interface