# rudra-yantramanav/drone-system architecture

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

- Interactive diagram: https://gitdiagram.com/rudra-yantramanav/drone-system
- Repository: https://github.com/rudra-yantramanav/drone-system

## Overview

This repository is a multi-UAV search-and-rescue system: operators configure a fleet and mission in Vimana GCS, plan search areas and delivery routes, then monitor drone state and control missions through ROS 2. The ROS workspace also provides fleet bringup, autopilot simulation, telemetry routing, perception, and hardware-facing nodes. The graph preserves the README’s major capabilities, but several backend implementations and integrations are unsampled; those links are omitted or marked unverified rather than inferred from package names.

Main entry points: [`ros2_ws/src/nidar_bringup/launch/nidar.launch.py`](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_bringup/launch/nidar.launch.py) (Fleet bringup), [`gcs_dashboard/src/stores/useMissionStore.ts`](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useMissionStore.ts) (Mission state), [`gcs_dashboard/src/App.tsx`](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/App.tsx) (GCS application), [`gcs_dashboard/src/components/MapDetails.tsx`](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/MapDetails.tsx) (Fleet map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gcs["Ground Control"]
  node_app["GCS application<br/>[App.tsx]"]
  node_mission_ui["Mission controls<br/>[MissionDetails.tsx]"]
  node_drone_ui["Drone panel<br/>[DroneDetails.tsx]"]
  node_map_ui["Fleet map<br/>[MapDetails.tsx]"]
end

subgraph group_mission["Mission Planning"]
  node_mission_state["Mission state<br/>[useMissionStore.ts]"]
  node_drawing_state["Boundary drawing<br/>[useDrawingStore.ts]"]
  node_mission_actions["Mission actions<br/>[mission.ts]"]
  node_mission_planner_client["Fleet plan client"]
end

subgraph group_fleet["Fleet Runtime"]
  node_fleet_state["Fleet state<br/>[useFleetStore.ts]"]
  node_ros_connection["ROS connection<br/>[ros.ts]"]
  node_bringup["Fleet bringup<br/>[nidar.launch.py]"]
  node_telemetry_router["MAVLink routing<br/>[mavlink_router.py]"]
  node_web_bridge["GCS bridges"]
  node_flight_data[("Flight data manager")]
end

subgraph group_services["Autonomy Services"]
  node_mission_server["Mission actions"]
  node_rth_server["Return to home"]
  node_route_server["Delivery routing"]
  node_fleet_planner["Fleet mission planner"]
  node_perception["Survivor perception<br/>[yolo_node.py]"]
  node_hardware["Camera and payload"]
  node_geospatial["Geospatial library"]
end

subgraph group_simulation["Simulation"]
  node_sim_ardupilot["ArduPilot SITL"]
  node_sim_px4["PX4 SITL"]
end

node_operator(("Fleet operator"))

node_operator -->|"operates"| node_app
node_app -->|"renders"| node_mission_ui
node_app -->|"renders"| node_drone_ui
node_app -->|"renders"| node_map_ui
node_mission_ui -->|"updates"| node_mission_state
node_map_ui -->|"reads"| node_mission_state
node_map_ui -->|"reads"| node_fleet_state
node_map_ui -->|"updates"| node_drawing_state
node_mission_state -->|"generates boundary"| node_drawing_state
node_mission_state -->|"requests plans"| node_mission_planner_client
node_mission_state -->|"starts mission"| node_mission_actions
node_fleet_state -.->|"subscribes via topics"| node_ros_connection
node_mission_planner_client -->|"uses"| node_ros_connection
node_mission_actions -->|"creates action client"| node_ros_connection
node_operator -->|"launches fleet"| node_bringup
node_bringup -.->|"starts SITL"| node_sim_ardupilot
node_bringup -.->|"starts SITL"| node_sim_px4
node_bringup -.->|"configures fleet"| node_telemetry_router
node_bringup -.->|"starts bridges"| node_web_bridge
node_web_bridge -.->|"serves GCS data"| node_ros_connection
node_web_bridge -.->|"streams telemetry"| node_fleet_state
node_mission_planner_client -.->|"requests plan"| node_fleet_planner
node_mission_actions -.->|"dispatches action"| node_mission_server
node_mission_server -.->|"supports return"| node_rth_server
node_route_server -.->|"uses routing"| node_geospatial
node_perception -.->|"publishes detections"| node_web_bridge
node_hardware -.->|"fleet hardware"| node_bringup
node_telemetry_router -.->|"logs telemetry"| node_flight_data

click node_app "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/App.tsx"
click node_mission_ui "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/MissionDetails.tsx"
click node_drone_ui "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/DroneDetails.tsx"
click node_map_ui "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/MapDetails.tsx"
click node_mission_state "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useMissionStore.ts"
click node_drawing_state "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useDrawingStore.ts"
click node_fleet_state "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useFleetStore.ts"
click node_ros_connection "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/ros/ros.ts"
click node_mission_actions "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/ros/action/mission/mission.ts"
click node_mission_planner_client "https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/ros/service/mission/planFleetMission.ts"
click node_bringup "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_bringup/launch/nidar.launch.py"
click node_telemetry_router "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_telemetry/karna_telemetry/mavlink_router.py"
click node_web_bridge "https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/karna_web/karna_web"
click node_mission_server "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_mission/karna_mission/mission_action_server.py"
click node_rth_server "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_mission/karna_mission/rth_action_server.py"
click node_route_server "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_swarm/nidar_swarm/generate_delivery_routes_server.py"
click node_fleet_planner "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_swarm/nidar_swarm/plan_fleet_mission_server.py"
click node_perception "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_perception/karna_perception/yolo_node.py"
click node_hardware "https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/karna_hardware/karna_hardware"
click node_flight_data "https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/nidar_data"
click node_sim_ardupilot "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_simulation/karna_simulation/ardupilot_sitl_manager.py"
click node_sim_px4 "https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_simulation/karna_simulation/px4_sitl_manager.py"
click node_geospatial "https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/lib_geospatial/lib_geospatial"

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_app,node_mission_ui,node_drone_ui,node_map_ui toneBlue
class node_mission_state,node_drawing_state,node_mission_actions,node_mission_planner_client toneAmber
class node_fleet_state,node_ros_connection,node_bringup,node_telemetry_router,node_web_bridge,node_flight_data toneMint
class node_mission_server,node_rth_server,node_route_server,node_fleet_planner,node_perception,node_hardware,node_geospatial toneRose
class node_sim_ardupilot,node_sim_px4,node_operator toneIndigo
```

## Components

### Ground Control

- [GCS application](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/App.tsx): `gcs_dashboard/src/App.tsx`
- [Mission controls](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/MissionDetails.tsx): `gcs_dashboard/src/components/MissionDetails.tsx`
- [Drone panel](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/DroneDetails.tsx): `gcs_dashboard/src/components/DroneDetails.tsx`
- [Fleet map](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/components/MapDetails.tsx): `gcs_dashboard/src/components/MapDetails.tsx`

### Mission Planning

- [Mission state](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useMissionStore.ts): `gcs_dashboard/src/stores/useMissionStore.ts`
- [Boundary drawing](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useDrawingStore.ts): `gcs_dashboard/src/stores/useDrawingStore.ts`
- [Mission actions](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/ros/action/mission/mission.ts): `gcs_dashboard/src/ros/action/mission/mission.ts`
- [Fleet plan client](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/ros/service/mission/planFleetMission.ts): `gcs_dashboard/src/ros/service/mission/planFleetMission.ts`

### Fleet Runtime

- [Fleet state](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/stores/useFleetStore.ts): `gcs_dashboard/src/stores/useFleetStore.ts`
- [ROS connection](https://github.com/rudra-yantramanav/drone-system/blob/main/gcs_dashboard/src/ros/ros.ts): `gcs_dashboard/src/ros/ros.ts`
- [Fleet bringup](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_bringup/launch/nidar.launch.py): `ros2_ws/src/nidar_bringup/launch/nidar.launch.py`
- [MAVLink routing](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_telemetry/karna_telemetry/mavlink_router.py): `ros2_ws/src/karna_telemetry/karna_telemetry/mavlink_router.py`
- [GCS bridges](https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/karna_web/karna_web): `ros2_ws/src/karna_web/karna_web`
- [Flight data manager](https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/nidar_data): `ros2_ws/src/nidar_data`

### Autonomy Services

- [Mission actions](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_mission/karna_mission/mission_action_server.py): `ros2_ws/src/karna_mission/karna_mission/mission_action_server.py`
- [Return to home](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_mission/karna_mission/rth_action_server.py): `ros2_ws/src/karna_mission/karna_mission/rth_action_server.py`
- [Delivery routing](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_swarm/nidar_swarm/generate_delivery_routes_server.py): `ros2_ws/src/nidar_swarm/nidar_swarm/generate_delivery_routes_server.py`
- [Fleet mission planner](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/nidar_swarm/nidar_swarm/plan_fleet_mission_server.py): `ros2_ws/src/nidar_swarm/nidar_swarm/plan_fleet_mission_server.py`
- [Survivor perception](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_perception/karna_perception/yolo_node.py): `ros2_ws/src/karna_perception/karna_perception/yolo_node.py`
- [Camera and payload](https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/karna_hardware/karna_hardware): `ros2_ws/src/karna_hardware/karna_hardware`
- [Geospatial library](https://github.com/rudra-yantramanav/drone-system/tree/main/ros2_ws/src/lib_geospatial/lib_geospatial): `ros2_ws/src/lib_geospatial/lib_geospatial`

### Simulation

- [ArduPilot SITL](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_simulation/karna_simulation/ardupilot_sitl_manager.py): `ros2_ws/src/karna_simulation/karna_simulation/ardupilot_sitl_manager.py`
- [PX4 SITL](https://github.com/rudra-yantramanav/drone-system/blob/main/ros2_ws/src/karna_simulation/karna_simulation/px4_sitl_manager.py): `ros2_ws/src/karna_simulation/karna_simulation/px4_sitl_manager.py`

### Other components

- **Fleet operator**

## Connections

- Fleet operator → GCS application: operates (evidence: `README.md`)
- GCS application → Mission controls: renders (evidence: `gcs_dashboard/src/App.tsx`)
- GCS application → Drone panel: renders (evidence: `gcs_dashboard/src/App.tsx`)
- GCS application → Fleet map: renders (evidence: `gcs_dashboard/src/App.tsx`)
- Mission controls → Mission state: updates (evidence: `gcs_dashboard/src/components/MissionDetails.tsx`)
- Fleet map → Mission state: reads (evidence: `gcs_dashboard/src/components/MapDetails.tsx`)
- Fleet map → Fleet state: reads (evidence: `gcs_dashboard/src/components/MapDetails.tsx`)
- Fleet map → Boundary drawing: updates (evidence: `gcs_dashboard/src/components/MapDetails.tsx`)
- Mission state → Boundary drawing: generates boundary (evidence: `gcs_dashboard/src/stores/useMissionStore.ts`)
- Mission state → Fleet plan client: requests plans (evidence: `gcs_dashboard/src/stores/useMissionStore.ts`)
- Mission state → Mission actions: starts mission (evidence: `gcs_dashboard/src/stores/useMissionStore.ts`)
- Fleet state → ROS connection: subscribes via topics
- Fleet plan client → ROS connection: uses (evidence: `gcs_dashboard/src/ros/service/mission/planFleetMission.ts`)
- Mission actions → ROS connection: creates action client
- Fleet operator → Fleet bringup: launches fleet (evidence: `README.md`)
- Fleet bringup → ArduPilot SITL: starts SITL
- Fleet bringup → PX4 SITL: starts SITL
- Fleet bringup → MAVLink routing: configures fleet
- Fleet bringup → GCS bridges: starts bridges
- GCS bridges → ROS connection: serves GCS data
- GCS bridges → Fleet state: streams telemetry
- Fleet plan client → Fleet mission planner: requests plan
- Mission actions → Mission actions: dispatches action
- Mission actions → Return to home: supports return
- Delivery routing → Geospatial library: uses routing (evidence: `ros2_ws/src/nidar_swarm/nidar_swarm/generate_delivery_routes_server.py`)
- Survivor perception → GCS bridges: publishes detections
- Camera and payload → Fleet bringup: fleet hardware
- MAVLink routing → Flight data manager: logs telemetry
