# mahdibh314/warehouse_robot_ws architecture

> Architecture diagram of the GitHub repository mahdibh314/warehouse_robot_ws, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mahdibh314/warehouse_robot_ws
- Repository: https://github.com/mahdibh314/warehouse_robot_ws

## Overview

This is a ROS 2 warehouse AMR simulation and operator-control stack. The main workflow runs a Gazebo robot and warehouse, processes camera and LiDAR inputs, and exposes perception status and robot control through a web dashboard. Operators can view telemetry and the warehouse map, teleoperate the robot, or configure waypoint missions; the dashboard node runs the mission and obstacle-avoidance logic and publishes velocity commands. The README documents additional SLAM and RViz capabilities. Some subsystem links are based on README descriptions because their implementation was not sampled.

Main entry points: [`src/dashboard/dashboard/dashboard_node.py`](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py) (Dashboard API & ROS node), [`src/perception/perception/mode_manager_node.py`](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py) (Mode & obstacle manager), [`src/dashboard/frontend/src/App.jsx`](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx) (Dashboard application), [`src/bringup/launch/full_simulation.launch.py`](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/full_simulation.launch.py) (Full system launch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_simulation["Simulation &amp; Robot"]
  node_bringup["Full system launch"]
  node_gazebo_launch["Gazebo launch<br/>[gazebo.launch.py]"]
  node_warehouse_world["Warehouse world<br/>[warehouse.world]"]
  node_robot_description["Robot model"]
  node_simulator["Gazebo simulator"]
  node_robot_topics["Robot sensor &amp; motion topics"]
end

subgraph group_perception["Perception"]
  node_camera_detection["Camera target detection<br/>[perception_node.py]"]
  node_mode_manager["Mode &amp; obstacle manager"]
  node_static_baseline[("Static LiDAR baseline")]
  node_dynamic_obstacles["Dynamic obstacles &amp; fusion"]
end

subgraph group_control["Control &amp; Gateway"]
  node_dashboard_backend["Dashboard API &amp; ROS node<br/>[dashboard_node.py]"]
  node_mission_engine["Waypoint mission engine<br/>[dashboard_node.py]"]
  node_avoidance["Reactive obstacle avoidance<br/>[dashboard_node.py]"]
end

subgraph group_interface["Operator Dashboard"]
  node_web_app["Dashboard application<br/>[App.jsx]"]
  node_map_view["2D warehouse map<br/>[App.jsx]"]
  node_video_feed["MJPEG camera feed<br/>[App.jsx]"]
  node_telemetry_controls["Telemetry &amp; teleoperation<br/>[App.jsx]"]
end

subgraph group_visualization["Mapping &amp; Visualization"]
  node_slam["SLAM toolbox<br/>[slam.launch.py]"]
  node_rviz["RViz robot display<br/>[display.launch.py]"]
end

node_operator(("Warehouse operator"))

node_operator -->|"operates"| node_web_app
node_bringup -->|"includes"| node_gazebo_launch
node_bringup -->|"launches"| node_dashboard_backend
node_bringup -->|"launches"| node_camera_detection
node_bringup -->|"launches"| node_mode_manager
node_gazebo_launch -->|"starts"| node_simulator
node_gazebo_launch -->|"loads"| node_warehouse_world
node_gazebo_launch -->|"loads"| node_robot_description
node_simulator -->|"publishes sensors"| node_robot_topics
node_robot_topics -->|"streams images"| node_camera_detection
node_camera_detection -->|"publishes detections"| node_mode_manager
node_robot_topics -->|"provides LiDAR"| node_mode_manager
node_mode_manager -->|"publishes baseline"| node_static_baseline
node_mode_manager -->|"filters &amp; fuses"| node_dynamic_obstacles
node_mode_manager -->|"reports mode"| node_dashboard_backend
node_dashboard_backend -->|"reads sensors"| node_robot_topics
node_dashboard_backend -->|"publishes velocity"| node_robot_topics
node_dashboard_backend -->|"runs missions"| node_mission_engine
node_dashboard_backend -->|"executes autonomy"| node_avoidance
node_dashboard_backend -->|"sets mode"| node_mode_manager
node_web_app -->|"calls API"| node_dashboard_backend
node_web_app -->|"renders"| node_map_view
node_web_app -->|"renders"| node_video_feed
node_web_app -->|"renders"| node_telemetry_controls
node_web_app -->|"configures missions"| node_mission_engine
node_slam -.->|"uses simulation time"| node_simulator
node_rviz -->|"displays model"| node_robot_description
node_mode_manager -->|"publishes markers"| node_rviz

click node_bringup "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/full_simulation.launch.py"
click node_gazebo_launch "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/gazebo.launch.py"
click node_warehouse_world "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/worlds/warehouse.world"
click node_robot_description "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/warehouse_robot_description/urdf/warehouse_robot.urdf.xacro"
click node_camera_detection "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/perception_node.py"
click node_mode_manager "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py"
click node_static_baseline "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py"
click node_dynamic_obstacles "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py"
click node_dashboard_backend "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py"
click node_mission_engine "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py"
click node_avoidance "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py"
click node_web_app "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx"
click node_map_view "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx"
click node_video_feed "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx"
click node_telemetry_controls "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx"
click node_slam "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/slam.launch.py"
click node_rviz "https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/warehouse_robot_description/launch/display.launch.py"

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_bringup,node_gazebo_launch,node_warehouse_world,node_robot_description,node_simulator,node_robot_topics toneBlue
class node_camera_detection,node_mode_manager,node_static_baseline,node_dynamic_obstacles toneAmber
class node_dashboard_backend,node_mission_engine,node_avoidance toneMint
class node_web_app,node_map_view,node_video_feed,node_telemetry_controls toneRose
class node_slam,node_rviz,node_operator toneIndigo
```

## Components

### Simulation & Robot

- [Full system launch](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/full_simulation.launch.py): `src/bringup/launch/full_simulation.launch.py`
- [Gazebo launch](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/gazebo.launch.py): `src/bringup/launch/gazebo.launch.py`
- [Warehouse world](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/worlds/warehouse.world): `src/bringup/worlds/warehouse.world`
- [Robot model](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/warehouse_robot_description/urdf/warehouse_robot.urdf.xacro): `src/warehouse_robot_description/urdf/warehouse_robot.urdf.xacro`
- **Gazebo simulator**
- **Robot sensor & motion topics**

### Perception

- [Camera target detection](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/perception_node.py): `src/perception/perception/perception_node.py`
- [Mode & obstacle manager](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py): `src/perception/perception/mode_manager_node.py`
- [Static LiDAR baseline](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py): `src/perception/perception/mode_manager_node.py`
- [Dynamic obstacles & fusion](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/perception/perception/mode_manager_node.py): `src/perception/perception/mode_manager_node.py`

### Control & Gateway

- [Dashboard API & ROS node](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py): `src/dashboard/dashboard/dashboard_node.py`
- [Waypoint mission engine](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py): `src/dashboard/dashboard/dashboard_node.py`
- [Reactive obstacle avoidance](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/dashboard/dashboard_node.py): `src/dashboard/dashboard/dashboard_node.py`

### Operator Dashboard

- [Dashboard application](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx): `src/dashboard/frontend/src/App.jsx`
- [2D warehouse map](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx): `src/dashboard/frontend/src/App.jsx`
- [MJPEG camera feed](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx): `src/dashboard/frontend/src/App.jsx`
- [Telemetry & teleoperation](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/dashboard/frontend/src/App.jsx): `src/dashboard/frontend/src/App.jsx`

### Mapping & Visualization

- [SLAM toolbox](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/bringup/launch/slam.launch.py): `src/bringup/launch/slam.launch.py`
- [RViz robot display](https://github.com/mahdibh314/warehouse_robot_ws/blob/main/src/warehouse_robot_description/launch/display.launch.py): `src/warehouse_robot_description/launch/display.launch.py`

### Other components

- **Warehouse operator**

## Connections

- Warehouse operator → Dashboard application: operates (evidence: `README.md`)
- Full system launch → Gazebo launch: includes (evidence: `src/bringup/launch/full_simulation.launch.py`)
- Full system launch → Dashboard API & ROS node: launches (evidence: `README.md`)
- Full system launch → Camera target detection: launches (evidence: `src/bringup/launch/full_simulation.launch.py`)
- Full system launch → Mode & obstacle manager: launches (evidence: `src/bringup/launch/full_simulation.launch.py`)
- Gazebo launch → Gazebo simulator: starts (evidence: `src/bringup/launch/gazebo.launch.py`)
- Gazebo launch → Warehouse world: loads (evidence: `src/bringup/launch/gazebo.launch.py`)
- Gazebo launch → Robot model: loads (evidence: `src/bringup/launch/gazebo.launch.py`)
- Gazebo simulator → Robot sensor & motion topics: publishes sensors (evidence: `README.md`)
- Robot sensor & motion topics → Camera target detection: streams images (evidence: `src/perception/perception/perception_node.py`)
- Camera target detection → Mode & obstacle manager: publishes detections (evidence: `src/perception/perception/mode_manager_node.py`)
- Robot sensor & motion topics → Mode & obstacle manager: provides LiDAR (evidence: `src/perception/perception/mode_manager_node.py`)
- Mode & obstacle manager → Static LiDAR baseline: publishes baseline (evidence: `src/perception/perception/mode_manager_node.py`)
- Mode & obstacle manager → Dynamic obstacles & fusion: filters & fuses (evidence: `src/perception/perception/mode_manager_node.py`)
- Mode & obstacle manager → Dashboard API & ROS node: reports mode (evidence: `README.md`)
- Dashboard API & ROS node → Robot sensor & motion topics: reads sensors (evidence: `README.md`)
- Dashboard API & ROS node → Robot sensor & motion topics: publishes velocity (evidence: `src/dashboard/dashboard/dashboard_node.py`)
- Dashboard API & ROS node → Waypoint mission engine: runs missions (evidence: `src/dashboard/dashboard/dashboard_node.py`)
- Dashboard API & ROS node → Reactive obstacle avoidance: executes autonomy (evidence: `src/dashboard/dashboard/dashboard_node.py`)
- Dashboard API & ROS node → Mode & obstacle manager: sets mode (evidence: `src/dashboard/dashboard/dashboard_node.py`)
- Dashboard application → Dashboard API & ROS node: calls API (evidence: `src/dashboard/frontend/src/App.jsx`)
- Dashboard application → 2D warehouse map: renders (evidence: `README.md`)
- Dashboard application → MJPEG camera feed: renders (evidence: `README.md`)
- Dashboard application → Telemetry & teleoperation: renders (evidence: `README.md`)
- Dashboard application → Waypoint mission engine: configures missions (evidence: `src/dashboard/frontend/src/App.jsx`)
- SLAM toolbox → Gazebo simulator: uses simulation time (evidence: `src/bringup/launch/slam.launch.py`)
- RViz robot display → Robot model: displays model (evidence: `src/warehouse_robot_description/launch/display.launch.py`)
- Mode & obstacle manager → RViz robot display: publishes markers (evidence: `README.md`)
