How botbotrobotics/botbrain works
BotBrain is a modular ROS 2 robot-control platform with a Next.js web interface. The user-facing flow is to select a robot and operate it through dashboards, cockpit/custom controls, or missions; the frontend sends commands and reads telemetry through ROS, while robot-specific packages and navigation, localization, and orchestration provide runtime capabilities. The README documents broader features than the sampled source confirms; those branches are included, but unverified internal links are omitted. The hardware and ROS deployment are represented at subsystem level where implementation was not sampled.
Main entry points: topics-and-services-v2.tsx ROS topic/service factory · lifecycle_manager.cpp Lifecycle manager · page.tsx Dashboard & fleet · useBlockProgramExecution.tsx Block program execution
Components 27
Web Interface
- Dashboard & fleet
frontend/src/app/dashboard/page.tsx - Cockpit controls
frontend/src/app/cockpit/cockpit-client.tsx - Custom control UI
frontend/src/app/my-ui/page.tsx - Mission planning
frontend/src/app/missions/page.tsx - Maps & navigation UI
frontend/src/app/maps/page.tsx - Health & diagnostics UI
frontend/src/app/health/page.tsx - Robot profiles
frontend/src/config/robot-profiles/index.ts - ROS topic/service factory
frontend/src/utils/ros/topics-and-services-v2.tsx - Block program execution
frontend/src/hooks/useBlockProgramExecution.tsx - Mission services
frontend/src/services/missions.ts - User & dashboard storage
frontend/src/utils/supabase-client.ts
ROS Runtime
- ROS 2 robot graph
Robot Platforms
- Unitree Go2 interface
botbrain_ws/src/go2_pkg/go2_pkg/tools/go2.py - Unitree Go2-W interface
botbrain_ws/src/go2w_pkg/go2w_pkg/tools/go2w.py - G1 command interface
botbrain_ws/src/g1_pkg/src/g1_write.cpp - G1 hardware driver
botbrain_ws/src/g1_pkg/src/g1_driver/g1_driver.cpp - Tita interface
botbrain_ws/src/tita_pkg/tita_pkg/tools/tita.py
Autonomy & Operations
- Lifecycle dependency graph
botbrain_ws/src/bot_state_machine/include/graph_node.hpp - Lifecycle manager
botbrain_ws/src/bot_state_machine/src/lifecycle_manager.cpp - State controller
botbrain_ws/src/bot_state_machine/src/state_controller.cpp - SLAM & localization
botbrain_ws/src/bot_localization/bot_localization/launch/rtab_manager.launch.py - Nav2 planning
botbrain_ws/src/bot_navigation/launch/nav2.launch.py - YOLO perception
botbrain_ws/src/bot_yolo/bot_yolo/yolo_node.py - ROSA language control
botbrain_ws/src/bot_rosa/bot_rosa/llm.py - Jetson monitoring & WiFi
botbrain_ws/src/bot_jetson_stats/bot_jetson_stats/scripts/ros2_jtop_node.py - Robot bringup
botbrain_ws/src/bot_bringup/launch/bringup.launch.py
Other components
- Robot operator
Connections 28
- Robot operator → Dashboard & fleet: opens
README.md - Robot operator → Cockpit controls: controls
README.md - Robot operator → Custom control UI: customizes
README.md - Robot operator → Mission planning: plans missions
README.md - Cockpit controls → ROS topic/service factory: uses ROS
- Custom control UI → ROS topic/service factory: uses ROS
- Mission planning → Mission services: manages missions
- Block program execution → ROS topic/service factory: publishes commands
- Block program execution → Dashboard & fleet: executes from UI
- ROS topic/service factory → ROS 2 robot graph: sends and reads
README.md - Dashboard & fleet → User & dashboard storage: stores preferences
- Robot profiles → ROS topic/service factory: configures topics
frontend/src/utils/ros/topics-and-services-v2.tsx - ROS 2 robot graph → Lifecycle manager: hosts manager
- Lifecycle manager → Lifecycle dependency graph: loads node graph
botbrain_ws/src/bot_state_machine/src/lifecycle_manager.cpp - Lifecycle manager → State controller: controls lifecycle
botbrain_ws/src/bot_state_machine/src/lifecycle_manager.cpp - State controller → Lifecycle manager: requests transitions
botbrain_ws/src/bot_state_machine/src/state_controller.cpp - ROS 2 robot graph → SLAM & localization: provides sensor data
- SLAM & localization → Nav2 planning: supports mapping
- Nav2 planning → ROS 2 robot graph: plans robot motion
- ROS 2 robot graph → YOLO perception: provides camera input
- ROS 2 robot graph → ROSA language control: receives robot commands
- ROS 2 robot graph → Jetson monitoring & WiFi: publishes diagnostics
- Robot bringup → ROS 2 robot graph: starts robot system
- ROS 2 robot graph → Unitree Go2 interface: exchanges robot commands
- ROS 2 robot graph → Unitree Go2-W interface: exchanges robot commands
- ROS 2 robot graph → G1 command interface: routes robot commands
- G1 command interface → G1 hardware driver: controls hardware
botbrain_ws/src/g1_pkg/src/g1_write.cpp - ROS 2 robot graph → Tita interface: exchanges robot commands