How amansour5/self_driving_car works
This repository provides a ROS 2 vehicle-control and monitoring interface: a browser dashboard connects over rosbridge, displays compressed camera feeds, and publishes control mode and joystick input. Camera conversion is implemented in a ROS node; a separate node launches an HTTP MJPEG server using a configured web root. Control-side camera publishing is registered as an executable, but its implementation was not sampled, so its downstream behavior is omitted. The tree and excerpts do not establish how the control node consumes the dashboard's messages.
Main entry points: app.js Dashboard UI · GUIStreamingNode.py HTTP GUI streamer · CameraStreamingNode.py JPEG conversion · carla_test.py CARLA camera publisher
Components 13
Browser dashboard
- Dashboard UI
src/gui/gui/guiContent/app.js - Dashboard assets
src/gui/gui/guiContent/index.html - Mode and joystick
src/gui/gui/guiContent/app.js - Camera panels
src/gui/gui/guiContent/app.js
ROS streaming
- ROS bridge
- JPEG conversion
src/gui/gui/nodes/CameraStreamingNode.py - Camera image topics
- Compressed image topics
- HTTP GUI streamer
src/gui/gui/nodes/GUIStreamingNode.py - MJPEG server
- CARLA camera publisher
src/control/control/nodes/carla_test.py
Configuration
- Environment parameters
src/utils/utils/EnvParams.py
Other components
- Vehicle operator
Connections 12
- Vehicle operator → Dashboard UI: uses
src/gui/gui/guiContent/app.js - Dashboard UI → Dashboard assets: loads
- Dashboard UI → ROS bridge: connects
src/gui/gui/guiContent/app.js - Dashboard UI → Mode and joystick: publishes
src/gui/gui/guiContent/app.js - Mode and joystick → ROS bridge: sends topics
src/gui/gui/guiContent/app.js - ROS bridge → Compressed image topics: delivers
- Compressed image topics → Camera panels: renders frames
src/gui/gui/guiContent/app.js - Camera image topics → JPEG conversion: subscribes
src/gui/gui/nodes/CameraStreamingNode.py - JPEG conversion → Compressed image topics: publishes JPEG
src/gui/gui/nodes/CameraStreamingNode.py - HTTP GUI streamer → Environment parameters: reads settings
src/gui/gui/nodes/GUIStreamingNode.py - HTTP GUI streamer → MJPEG server: runs server
src/gui/gui/nodes/GUIStreamingNode.py - CARLA camera publisher → Camera image topics: publishes