# darkknight5527/vx-01-autonomous-robot architecture

> Architecture diagram of the GitHub repository darkknight5527/vx-01-autonomous-robot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/darkknight5527/vx-01-autonomous-robot
- Repository: https://github.com/darkknight5527/vx-01-autonomous-robot

## Overview

VX-01 is a ROS 2 multi-terrain robot with a React mission dashboard. The documented user workflow is dashboard teleoperation and monitoring through rosbridge, with robot-side perception/mapping and ground or aerial control leading to hardware actuation. Major documented branches include hybrid mode changes, camera-based SLAM, vision, flight bridging, simulation, and the dashboard’s process controls. Source evidence is partial: the dashboard page and many ROS nodes were not excerpted, so most cross-package relationships below rely on README statements; uncertain links are omitted.

Main entry points: [`vx01_ws/src/vx01_bringup/launch/vx01.launch.py`](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_bringup/launch/vx01.launch.py) (Robot bringup), [`vx01_ws/src/vx01_camera/src/CameraPublisher.cpp`](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_camera/src/CameraPublisher.cpp) (Depth camera driver), [`vx01_dashboard/frontend/src/pages/Dashboard.jsx`](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/frontend/src/pages/Dashboard.jsx) (Mission dashboard), [`vx01_ws/src/vx01_perception/scripts/mission_manager_node.py`](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/mission_manager_node.py) (Autonomy manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mission_ui["Mission interface"]
  node_dashboard["Mission dashboard<br/>[Dashboard.jsx]"]
  node_dashboard_app["React app entry<br/>[App.jsx]"]
  node_dashboard_api["Launch API<br/>[server.js]"]
  node_robot_store[("Process registry<br/>[server.js]")]
end

subgraph group_robot_coord["Robot coordination"]
  node_bringup["Robot bringup<br/>[vx01.launch.py]"]
  node_mission["Mission coordination"]
  node_hybrid_mode["Hybrid mode manager"]
  node_mission_manager["Autonomy manager"]
end

subgraph group_sensing["Sensing and mapping"]
  node_camera["Depth camera driver"]
  node_imu["IMU driver<br/>[vx01_imu_node.py]"]
  node_mapping["Visual SLAM"]
  node_victim["Victim detection"]
  node_terrain["Terrain classification"]
end

subgraph group_motion["Motion control"]
  node_hexapod["Hexapod locomotion<br/>[hexapod_node.py]"]
  node_aerial["Aerial controller"]
  node_mavros["MAVROS bridge<br/>[mavros_bridge.cpp]"]
  node_flight_modes["Flight mode manager"]
end

subgraph group_actuation["Hardware and simulation"]
  node_hex_hardware["Hexapod servo hardware"]
  node_drone_hardware["Drone hardware interface"]
  node_simulation["Gazebo simulation<br/>[vx01_sim.launch.py]"]
end

node_operator(("Operator"))
node_rosbridge["rosbridge_server"]
node_ardupilot["ArduPilot flight controller"]

node_operator -->|"operates"| node_dashboard
node_dashboard_app -->|"renders"| node_dashboard
node_dashboard -->|"teleoperates, monitors"| node_rosbridge
node_dashboard -.->|"launch controls"| node_dashboard_api
node_dashboard_api -->|"tracks processes"| node_robot_store
node_bringup -.->|"starts"| node_mission
node_bringup -.->|"starts"| node_camera
node_bringup -.->|"starts"| node_hexapod
node_camera -->|"depth data"| node_mapping
node_imu -.->|"odometry input"| node_mapping
node_camera -.->|"image input"| node_victim
node_camera -.->|"image input"| node_terrain
node_mapping -.->|"mapping input"| node_mission_manager
node_victim -.->|"detection results"| node_mission_manager
node_terrain -.->|"walkability results"| node_mission_manager
node_mission_manager -.->|"requests modes"| node_hybrid_mode
node_hybrid_mode -->|"coordinates transition"| node_hexapod
node_hybrid_mode -->|"coordinates transition"| node_aerial
node_hexapod -->|"joint commands"| node_hex_hardware
node_aerial -->|"flight commands"| node_mavros
node_mavros -.->|"uses mode services"| node_flight_modes
node_mavros -->|"MAVROS bridge"| node_ardupilot
node_aerial -.->|"hardware commands"| node_drone_hardware
node_bringup -.->|"launches simulation"| node_simulation

click node_dashboard "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/frontend/src/pages/Dashboard.jsx"
click node_dashboard_app "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/frontend/src/App.jsx"
click node_dashboard_api "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/backend/server.js"
click node_bringup "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_bringup/launch/vx01.launch.py"
click node_mission "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_bringup/scripts/mission_coordinator.py"
click node_hybrid_mode "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_control/hybrid/vx01_mode_manager/src/mode_manager_node.cpp"
click node_camera "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_camera/src/CameraPublisher.cpp"
click node_imu "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_imu/vx01_imu/vx01_imu_node.py"
click node_mapping "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_mapping/launch/vx01_mapping.launch.py"
click node_victim "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/victim_detector_node.py"
click node_terrain "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/terrain_classifier_node.py"
click node_mission_manager "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/mission_manager_node.py"
click node_hexapod "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_control/locomotion/vx01_hexapod_locomotion/vx01_hexapod_locomotion/hexapod_node.py"
click node_aerial "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_control/aerial/vx01_aerial_control/vx01_aerial_control/aerial_controller_node.py"
click node_mavros "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_mavros_bridge/src/mavros_bridge.cpp"
click node_flight_modes "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_mavros_bridge/src/flight_mode_manager.cpp"
click node_hex_hardware "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_hardware/vx01_hexapod_hardware/src/hexapod_hardware_interface.cpp"
click node_drone_hardware "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_hardware/vx01_drone_hardware/src/drone_hardware_interface.cpp"
click node_simulation "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_simulation/launch/vx01_sim.launch.py"
click node_robot_store "https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/backend/server.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_dashboard_app,node_dashboard_api,node_robot_store toneBlue
class node_bringup,node_mission,node_hybrid_mode,node_mission_manager toneAmber
class node_camera,node_imu,node_mapping,node_victim,node_terrain,node_rosbridge toneMint
class node_hexapod,node_aerial,node_mavros,node_flight_modes toneRose
class node_hex_hardware,node_drone_hardware,node_simulation,node_operator,node_ardupilot toneIndigo
```

## Components

### Mission interface

- [Mission dashboard](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/frontend/src/pages/Dashboard.jsx): `vx01_dashboard/frontend/src/pages/Dashboard.jsx`
- [React app entry](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/frontend/src/App.jsx): `vx01_dashboard/frontend/src/App.jsx`
- [Launch API](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/backend/server.js): `vx01_dashboard/backend/server.js`
- [Process registry](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_dashboard/backend/server.js): `vx01_dashboard/backend/server.js`

### Robot coordination

- [Robot bringup](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_bringup/launch/vx01.launch.py): `vx01_ws/src/vx01_bringup/launch/vx01.launch.py`
- [Mission coordination](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_bringup/scripts/mission_coordinator.py): `vx01_ws/src/vx01_bringup/scripts/mission_coordinator.py`
- [Hybrid mode manager](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_control/hybrid/vx01_mode_manager/src/mode_manager_node.cpp): `vx01_ws/src/vx01_control/hybrid/vx01_mode_manager/src/mode_manager_node.cpp`
- [Autonomy manager](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/mission_manager_node.py): `vx01_ws/src/vx01_perception/scripts/mission_manager_node.py`

### Sensing and mapping

- [Depth camera driver](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_camera/src/CameraPublisher.cpp): `vx01_ws/src/vx01_camera/src/CameraPublisher.cpp`
- [IMU driver](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_imu/vx01_imu/vx01_imu_node.py): `vx01_ws/src/vx01_imu/vx01_imu/vx01_imu_node.py`
- [Visual SLAM](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_mapping/launch/vx01_mapping.launch.py): `vx01_ws/src/vx01_mapping/launch/vx01_mapping.launch.py`
- [Victim detection](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/victim_detector_node.py): `vx01_ws/src/vx01_perception/scripts/victim_detector_node.py`
- [Terrain classification](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_perception/scripts/terrain_classifier_node.py): `vx01_ws/src/vx01_perception/scripts/terrain_classifier_node.py`

### Motion control

- [Hexapod locomotion](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_control/locomotion/vx01_hexapod_locomotion/vx01_hexapod_locomotion/hexapod_node.py): `vx01_ws/src/vx01_control/locomotion/vx01_hexapod_locomotion/vx01_hexapod_locomotion/hexapod_node.py`
- [Aerial controller](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_control/aerial/vx01_aerial_control/vx01_aerial_control/aerial_controller_node.py): `vx01_ws/src/vx01_control/aerial/vx01_aerial_control/vx01_aerial_control/aerial_controller_node.py`
- [MAVROS bridge](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_mavros_bridge/src/mavros_bridge.cpp): `vx01_ws/src/vx01_mavros_bridge/src/mavros_bridge.cpp`
- [Flight mode manager](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_mavros_bridge/src/flight_mode_manager.cpp): `vx01_ws/src/vx01_mavros_bridge/src/flight_mode_manager.cpp`

### Hardware and simulation

- [Hexapod servo hardware](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_hardware/vx01_hexapod_hardware/src/hexapod_hardware_interface.cpp): `vx01_ws/src/vx01_hardware/vx01_hexapod_hardware/src/hexapod_hardware_interface.cpp`
- [Drone hardware interface](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_hardware/vx01_drone_hardware/src/drone_hardware_interface.cpp): `vx01_ws/src/vx01_hardware/vx01_drone_hardware/src/drone_hardware_interface.cpp`
- [Gazebo simulation](https://github.com/darkknight5527/vx-01-autonomous-robot/blob/main/vx01_ws/src/vx01_simulation/launch/vx01_sim.launch.py): `vx01_ws/src/vx01_simulation/launch/vx01_sim.launch.py`

### Other components

- **Operator**
- **rosbridge_server**
- **ArduPilot flight controller**

## Connections

- Operator → Mission dashboard: operates (evidence: `README.md`)
- React app entry → Mission dashboard: renders (evidence: `vx01_dashboard/frontend/src/App.jsx`)
- Mission dashboard → rosbridge_server: teleoperates, monitors (evidence: `README.md`)
- Mission dashboard → Launch API: launch controls
- Launch API → Process registry: tracks processes (evidence: `vx01_dashboard/backend/server.js`)
- Robot bringup → Mission coordination: starts
- Robot bringup → Depth camera driver: starts
- Robot bringup → Hexapod locomotion: starts
- Depth camera driver → Visual SLAM: depth data (evidence: `README.md`)
- IMU driver → Visual SLAM: odometry input
- Depth camera driver → Victim detection: image input
- Depth camera driver → Terrain classification: image input
- Visual SLAM → Autonomy manager: mapping input
- Victim detection → Autonomy manager: detection results
- Terrain classification → Autonomy manager: walkability results
- Autonomy manager → Hybrid mode manager: requests modes
- Hybrid mode manager → Hexapod locomotion: coordinates transition (evidence: `README.md`)
- Hybrid mode manager → Aerial controller: coordinates transition (evidence: `README.md`)
- Hexapod locomotion → Hexapod servo hardware: joint commands (evidence: `README.md`)
- Aerial controller → MAVROS bridge: flight commands (evidence: `README.md`)
- MAVROS bridge → Flight mode manager: uses mode services
- MAVROS bridge → ArduPilot flight controller: MAVROS bridge (evidence: `README.md`)
- Aerial controller → Drone hardware interface: hardware commands
- Robot bringup → Gazebo simulation: launches simulation
