How bfmc2026-sea-me/seame_brain works
SEA:ME BFMC Dashboard is a vehicle-side dashboard and integration runtime: the Python process manager launches dashboard, vehicle I/O, and ROS2 bridge processes; browser controls and telemetry travel through the dashboard backend and shared message queues. Major product branches include live camera, Ackermann control, global-planning visualization, traffic/semaphore data, serial hardware, and vehicle monitoring. The README and source index support the main process wiring and documented integrations; unsampled implementation details are represented conservatively.
Main entry points: main.py Process launcher · processDashboard.py Dashboard backend · app.component.ts Dashboard UI · processSerialHandler.py Serial handler
Components 27
Runtime orchestration
- Process launcher
Brain/main.py
Dashboard experience
- Dashboard backend
Brain/src/dashboard/processDashboard.py - Dashboard UI
Brain/src/dashboard/frontend/src/app/app.component.ts - WebSocket service
Brain/src/dashboard/frontend/src/app/webSocket/web-socket.service.ts - Cluster controls
Brain/src/dashboard/frontend/src/app/cluster/state-switch/state-switch.component.ts - Map display
Brain/src/dashboard/frontend/src/app/cluster/map/map.component.ts - Calibration
Brain/src/dashboard/components/calibration.py
Vehicle services
- Serial handler
Brain/src/hardware/serialhandler/processSerialHandler.py - Serial reader
Brain/src/hardware/serialhandler/threads/threadRead.py - Camera service
Brain/src/hardware/camera/processCamera.py - Traffic communication
Brain/src/data/TrafficCommunication/processTrafficCommunication.py - Semaphore service
Brain/src/data/Semaphores/processSemaphores.py - Gateway service
Brain/src/gateway/processGateway.py - State machine
Brain/src/statemachine/stateMachine.py - System modes
Brain/src/statemachine/systemMode.py
ROS2 integrations
- Ackermann bridge
Brain/src/bridge/processAckermannBridge.py - Global planning bridge
Brain/src/bridge/processGlobalPlanningBridge.py - ROS camera receiver
Brain/src/hardware/camera/processRosCamera.py
Message infrastructure
- Message definitions
Brain/src/utils/messages/allMessages.py - Message sender
Brain/src/utils/messages/messageHandlerSender.py - Message subscriber
Brain/src/utils/messages/messageHandlerSubscriber.py - Interprocess queues
Other components
- Vehicle operator
- ROS2 topics
- Traffic service
- Vehicle serial hardware
- Camera source
Connections 35
- Vehicle operator → Dashboard UI: operates
- Dashboard UI → WebSocket service: sends controls
Brain/src/dashboard/frontend/src/app/app.component.ts - WebSocket service → Dashboard backend: WebSocket and HTTP
- Dashboard backend → WebSocket service: streams updates
- Dashboard UI → Cluster controls: renders controls
Brain/src/dashboard/frontend/src/app/app.component.ts - Dashboard UI → Map display: renders map
- Dashboard backend → Calibration: handles calibration
Brain/src/dashboard/processDashboard.py - Process launcher → Dashboard backend: starts
Brain/main.py - Process launcher → Ackermann bridge: starts
Brain/main.py - Process launcher → Global planning bridge: starts
Brain/main.py - Process launcher → ROS camera receiver: starts
Brain/main.py - Process launcher → Serial handler: starts
Brain/main.py - Process launcher → Traffic communication: starts
Brain/main.py - Process launcher → Semaphore service: starts
Brain/main.py - Process launcher → Gateway service: starts
Brain/main.py - Process launcher → State machine: starts
Brain/main.py - Ackermann bridge → ROS2 topics: receives commands
- Ackermann bridge → Serial handler: forwards speed and steer
- Global planning bridge → ROS2 topics: exchanges planning data
Brain/src/bridge/processGlobalPlanningBridge.py - Global planning bridge → Dashboard backend: forwards map and pose data
Brain/src/dashboard/processDashboard.py - ROS camera receiver → Camera source: receives frames
- ROS camera receiver → Dashboard backend: forwards frames
- Dashboard backend → Map display: provides map data
- Traffic communication → Traffic service: communicates
- Serial handler → Serial reader: starts reader
Brain/src/hardware/serialhandler/processSerialHandler.py - Serial handler → Vehicle serial hardware: serial I/O
- Semaphore service → Traffic communication: shares traffic data
- State machine → System modes: uses modes
Brain/src/statemachine/stateMachine.py - Dashboard backend → Message sender: publishes commands
Brain/src/dashboard/processDashboard.py - Dashboard backend → Message subscriber: subscribes to state
Brain/src/dashboard/processDashboard.py - Message sender → Message definitions: encodes message type
Brain/src/utils/messages/messageHandlerSender.py - Message subscriber → Interprocess queues: registers subscriptions
Brain/src/utils/messages/messageHandlerSubscriber.py - Message sender → Interprocess queues: writes payloads
Brain/src/utils/messages/messageHandlerSender.py - Serial reader → Message sender: publishes telemetry
Brain/src/hardware/serialhandler/threads/threadRead.py - Cluster controls → WebSocket service: sends dashboard actions
Brain/src/dashboard/frontend/src/app/cluster/state-switch/state-switch.component.ts