# sihasiha123/nav architecture

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

- Interactive diagram: https://gitdiagram.com/sihasiha123/nav
- Repository: https://github.com/sihasiha123/nav

## Overview

This Isaac Lab navigation extension defines a quadrotor reinforcement-learning task. The main workflow is to launch training or evaluation, build goal-relative observations and rewards for navigation, produce velocity actions, and convert those actions into simulated thrust and torque. Task configuration, reset state, obstacle motion, and termination logic support that loop; a custom PPO agent and optional Omniverse example UI provide additional capabilities. Connections reflect the README and SOURCE INDEX references; unsampled task wiring is not assumed.

Main entry points: [`source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py) (Navigation environment), [`source/nav/nav/tasks/manager_based/nav/mdp/observations.py`](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/observations.py) (Observations), [`source/nav/nav/tasks/manager_based/nav/mdp/rewards.py`](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/rewards.py) (Reward), [`source/nav/nav/tasks/manager_based/nav/mdp/terminations.py`](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/terminations.py) (Termination)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_task["Navigation task"]
  node_task_registry["Task registration<br/>[__init__.py]"]
  node_task_config["Navigation environment<br/>[nav_env_cfg.py]"]
  node_quad_asset["Quadcopter asset<br/>[quadcopter.py]"]
  node_reset_state["Reset and task state<br/>[events.py]"]
  node_observations["Observations<br/>[observations.py]"]
  node_reward["Reward<br/>[rewards.py]"]
  node_termination["Termination<br/>[terminations.py]"]
  node_obstacle_motion["Obstacle motion<br/>[dynamic.py]"]
end

subgraph group_control["Flight control"]
  node_actions["Action adapter<br/>[actions.py]"]
  node_velocity_controller["Velocity controller"]
  node_velocity_config["Velocity config"]
  node_lv_controller["LV controller<br/>[controller.py]"]
  node_lv_config["LV config<br/>[controller_cfg.py]"]
end

subgraph group_learning["RL workflow"]
  node_train["Train runner<br/>[train.py]"]
  node_evaluate["Evaluation runner<br/>[eval.py]"]
  node_ppo["Custom PPO<br/>[ppo.py]"]
  node_agent_utils["Agent utilities<br/>[common.py]"]
end

subgraph group_extension["Extension UI"]
  node_extension_ui["Example UI"]
end

node_user(("Engineer"))
node_isaac["Isaac Lab"]

node_user -->|"launches training"| node_train
node_user -->|"launches evaluation"| node_evaluate
node_train -->|"imports tasks"| node_task_registry
node_evaluate -->|"imports tasks"| node_task_registry
node_train -->|"imports agent"| node_ppo
node_train -->|"imports utilities"| node_agent_utils
node_evaluate -->|"imports agent"| node_ppo
node_evaluate -->|"imports utilities"| node_agent_utils
node_ppo -->|"uses utilities"| node_agent_utils
node_task_config -->|"configures asset"| node_quad_asset
node_task_config -->|"configures MDP"| node_observations
node_task_config -->|"configures MDP"| node_reward
node_task_config -->|"configures MDP"| node_reset_state
node_task_config -->|"configures MDP"| node_termination
node_task_config -->|"configures MDP"| node_obstacle_motion
node_task_config -->|"configures MDP"| node_actions
node_observations -->|"reads task state"| node_reset_state
node_observations -->|"reads obstacle manager"| node_obstacle_motion
node_reward -->|"reads task state"| node_reset_state
node_reward -->|"uses lidar helpers"| node_observations
node_reward -->|"reads obstacle manager"| node_obstacle_motion
node_termination -->|"reads task state"| node_reset_state
node_termination -->|"uses observation helpers"| node_observations
node_termination -->|"reads obstacle manager"| node_obstacle_motion
node_actions -->|"uses controller"| node_velocity_controller
node_velocity_controller -->|"computes wrench"| node_lv_controller
node_velocity_controller -->|"reads configuration"| node_velocity_config
node_velocity_config -->|"configures controller"| node_lv_config
node_lv_config -->|"selects controller"| node_lv_controller
node_isaac -->|"enables extension"| node_extension_ui

click node_train "https://github.com/sihasiha123/nav/blob/master/scripts/train.py"
click node_evaluate "https://github.com/sihasiha123/nav/blob/master/scripts/eval.py"
click node_ppo "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/agents/ppo.py"
click node_agent_utils "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/agents/common.py"
click node_task_registry "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/__init__.py"
click node_task_config "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py"
click node_quad_asset "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/assets/quadcopter.py"
click node_reset_state "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/events.py"
click node_observations "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/observations.py"
click node_reward "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/rewards.py"
click node_termination "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/terminations.py"
click node_obstacle_motion "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/dynamic.py"
click node_actions "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/actions.py"
click node_velocity_controller "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/velocity_controller.py"
click node_velocity_config "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/velocity_controller_cfg.py"
click node_lv_controller "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/controller.py"
click node_lv_config "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/controller_cfg.py"
click node_extension_ui "https://github.com/sihasiha123/nav/blob/master/source/nav/nav/ui_extension_example.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_task_registry,node_task_config,node_quad_asset,node_reset_state,node_observations,node_reward,node_termination,node_obstacle_motion toneBlue
class node_actions,node_velocity_controller,node_velocity_config,node_lv_controller,node_lv_config toneAmber
class node_train,node_evaluate,node_ppo,node_agent_utils toneMint
class node_extension_ui toneRose
class node_user,node_isaac toneIndigo
```

## Components

### Navigation task

- [Task registration](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/__init__.py): `source/nav/nav/tasks/__init__.py`
- [Navigation environment](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py): `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`
- [Quadcopter asset](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/assets/quadcopter.py): `source/nav/nav/assets/quadcopter.py`
- [Reset and task state](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/events.py): `source/nav/nav/tasks/manager_based/nav/mdp/events.py`
- [Observations](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/observations.py): `source/nav/nav/tasks/manager_based/nav/mdp/observations.py`
- [Reward](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/rewards.py): `source/nav/nav/tasks/manager_based/nav/mdp/rewards.py`
- [Termination](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/terminations.py): `source/nav/nav/tasks/manager_based/nav/mdp/terminations.py`
- [Obstacle motion](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/dynamic.py): `source/nav/nav/tasks/manager_based/nav/mdp/dynamic.py`

### Flight control

- [Action adapter](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/mdp/actions.py): `source/nav/nav/tasks/manager_based/nav/mdp/actions.py`
- [Velocity controller](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/velocity_controller.py): `source/nav/nav/controllers/velocity_controller.py`
- [Velocity config](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/velocity_controller_cfg.py): `source/nav/nav/controllers/velocity_controller_cfg.py`
- [LV controller](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/controller.py): `source/nav/nav/controllers/controller.py`
- [LV config](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/controllers/controller_cfg.py): `source/nav/nav/controllers/controller_cfg.py`

### RL workflow

- [Train runner](https://github.com/sihasiha123/nav/blob/master/scripts/train.py): `scripts/train.py`
- [Evaluation runner](https://github.com/sihasiha123/nav/blob/master/scripts/eval.py): `scripts/eval.py`
- [Custom PPO](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/agents/ppo.py): `source/nav/nav/tasks/manager_based/nav/agents/ppo.py`
- [Agent utilities](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/tasks/manager_based/nav/agents/common.py): `source/nav/nav/tasks/manager_based/nav/agents/common.py`

### Extension UI

- [Example UI](https://github.com/sihasiha123/nav/blob/master/source/nav/nav/ui_extension_example.py): `source/nav/nav/ui_extension_example.py`

### Other components

- **Engineer**
- **Isaac Lab**

## Connections

- Engineer → Train runner: launches training (evidence: `README.md`)
- Engineer → Evaluation runner: launches evaluation (evidence: `README.md`)
- Train runner → Task registration: imports tasks (evidence: `scripts/train.py`)
- Evaluation runner → Task registration: imports tasks (evidence: `scripts/eval.py`)
- Train runner → Custom PPO: imports agent (evidence: `scripts/train.py`)
- Train runner → Agent utilities: imports utilities (evidence: `scripts/train.py`)
- Evaluation runner → Custom PPO: imports agent (evidence: `scripts/eval.py`)
- Evaluation runner → Agent utilities: imports utilities (evidence: `scripts/eval.py`)
- Custom PPO → Agent utilities: uses utilities (evidence: `source/nav/nav/tasks/manager_based/nav/agents/ppo.py`)
- Navigation environment → Quadcopter asset: configures asset (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Navigation environment → Observations: configures MDP (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Navigation environment → Reward: configures MDP (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Navigation environment → Reset and task state: configures MDP (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Navigation environment → Termination: configures MDP (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Navigation environment → Obstacle motion: configures MDP (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Navigation environment → Action adapter: configures MDP (evidence: `source/nav/nav/tasks/manager_based/nav/nav_env_cfg.py`)
- Observations → Reset and task state: reads task state (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/observations.py`)
- Observations → Obstacle motion: reads obstacle manager (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/observations.py`)
- Reward → Reset and task state: reads task state (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/rewards.py`)
- Reward → Observations: uses lidar helpers (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/rewards.py`)
- Reward → Obstacle motion: reads obstacle manager (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/rewards.py`)
- Termination → Reset and task state: reads task state (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/terminations.py`)
- Termination → Observations: uses observation helpers (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/terminations.py`)
- Termination → Obstacle motion: reads obstacle manager (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/terminations.py`)
- Action adapter → Velocity controller: uses controller (evidence: `source/nav/nav/tasks/manager_based/nav/mdp/actions.py`)
- Velocity controller → LV controller: computes wrench (evidence: `source/nav/nav/controllers/velocity_controller.py`)
- Velocity controller → Velocity config: reads configuration (evidence: `source/nav/nav/controllers/velocity_controller.py`)
- Velocity config → LV config: configures controller (evidence: `source/nav/nav/controllers/velocity_controller_cfg.py`)
- LV config → LV controller: selects controller (evidence: `source/nav/nav/controllers/controller_cfg.py`)
- Isaac Lab → Example UI: enables extension (evidence: `README.md`)
