# irac-lab/real-panda-human-voxel-distance architecture

> Architecture diagram of the GitHub repository irac-lab/real-panda-human-voxel-distance, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/irac-lab/real-panda-human-voxel-distance
- Repository: https://github.com/irac-lab/real-panda-human-voxel-distance

## Overview

This ROS 2 workspace brings up a physical Panda and RealSense perception stack, estimates the filtered minimum distance between human and robot voxels, and optionally runs pick-and-place. The graph combines the documented runtime workflow with the launch and node relationships visible in the excerpts. Some perception components come from external Isaac ROS packages; their internal behavior is not represented here.

Main entry points: [`src/panda_real_bringup/launch/panda_realsense_people.launch.py`](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_real_bringup/launch/panda_realsense_people.launch.py) (Real-robot launch), [`src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py`](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py) (People segmentation), [`src/my_people_nvblox_bringup/launch/perception/nvblox.launch.py`](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/nvblox.launch.py) (Voxel mapping), [`src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py`](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py) (Closest voxel pair)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bringup["Runtime bringup"]
  node_real_bringup["Real-robot launch"]
  node_visualization["RViz visualization"]
end

subgraph group_perception["People perception"]
  node_perception_entry["Perception launch"]
  node_segmentation["People segmentation"]
  node_model["PeopleSemSegNet model"]
  node_detection["People detection"]
  node_vslam["Visual SLAM<br/>[vslam.launch.py]"]
  node_nvblox["Voxel mapping<br/>[nvblox.launch.py]"]
end

subgraph group_robot["Robot geometry"]
  node_panda_classifier["Panda voxel classifier"]
end

subgraph group_distance["Distance estimation"]
  node_closest["Closest voxel pair"]
  node_distance_plot["Distance plotting"]
end

subgraph group_motion["Robot alignment and motion"]
  node_alignment["ArUco camera alignment<br/>[aruco_align.py]"]
  node_arm_bringup["Panda control launch"]
  node_pick_place["Pick-and-place controller<br/>[pick_place_node.py]"]
end

node_operator(("Operator"))
node_rig{{"Panda and RealSense"}}

node_operator -->|"launches"| node_real_bringup
node_real_bringup -->|"includes"| node_perception_entry
node_perception_entry -->|"configures"| node_segmentation
node_segmentation -->|"loads model"| node_model
node_rig -->|"color images"| node_segmentation
node_rig -->|"camera images"| node_alignment
node_real_bringup -->|"configures"| node_nvblox
node_segmentation -->|"provides masks"| node_nvblox
node_rig -->|"depth input"| node_nvblox
node_real_bringup -->|"starts"| node_panda_classifier
node_rig -->|"robot TF"| node_panda_classifier
node_real_bringup -->|"starts"| node_closest
node_nvblox -->|"human voxels"| node_closest
node_panda_classifier -->|"Panda voxels"| node_closest
node_closest -.->|"distance output"| node_distance_plot
node_real_bringup -.->|"optional pipeline"| node_detection
node_real_bringup -.->|"optional pipeline"| node_vslam
node_real_bringup -->|"starts RViz"| node_visualization
node_operator -->|"launches"| node_arm_bringup
node_arm_bringup -->|"controls arm"| node_rig
node_operator -->|"runs"| node_pick_place
node_pick_place -->|"commands motion"| node_rig
node_alignment -->|"publishes camera TF"| node_rig

click node_real_bringup "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_real_bringup/launch/panda_realsense_people.launch.py"
click node_perception_entry "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py"
click node_segmentation "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py"
click node_model "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/models/peoplesemsegnet/vanilla/peoplesemsegnet_vanilla_unet_dynamic_etlt_fp32.onnx"
click node_detection "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/detection.launch.py"
click node_vslam "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/vslam.launch.py"
click node_nvblox "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/nvblox.launch.py"
click node_panda_classifier "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/panda_voxel_classifier.py"
click node_closest "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py"
click node_distance_plot "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/plot_filtered_distance.py"
click node_alignment "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_camera_alignment/panda_camera_alignment/aruco_align.py"
click node_arm_bringup "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_pick_place/launch/panda_control.launch.py"
click node_pick_place "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_pick_place/panda_pick_place/pick_place_node.py"
click node_visualization "https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/visualization/visualization.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_real_bringup,node_visualization toneBlue
class node_perception_entry,node_segmentation,node_model,node_detection,node_vslam,node_nvblox toneAmber
class node_panda_classifier toneMint
class node_closest,node_distance_plot toneRose
class node_alignment,node_arm_bringup,node_pick_place,node_operator,node_rig toneIndigo
```

## Components

### Runtime bringup

- [Real-robot launch](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_real_bringup/launch/panda_realsense_people.launch.py): `src/panda_real_bringup/launch/panda_realsense_people.launch.py`
- [RViz visualization](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/visualization/visualization.launch.py): `src/my_people_nvblox_bringup/launch/visualization/visualization.launch.py`

### People perception

- [Perception launch](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py): `src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py`
- [People segmentation](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py): `src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py`
- [PeopleSemSegNet model](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/models/peoplesemsegnet/vanilla/peoplesemsegnet_vanilla_unet_dynamic_etlt_fp32.onnx): `models/peoplesemsegnet/vanilla/peoplesemsegnet_vanilla_unet_dynamic_etlt_fp32.onnx`
- [People detection](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/detection.launch.py): `src/my_people_nvblox_bringup/launch/perception/detection.launch.py`
- [Visual SLAM](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/vslam.launch.py): `src/my_people_nvblox_bringup/launch/perception/vslam.launch.py`
- [Voxel mapping](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/launch/perception/nvblox.launch.py): `src/my_people_nvblox_bringup/launch/perception/nvblox.launch.py`

### Robot geometry

- [Panda voxel classifier](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/panda_voxel_classifier.py): `src/my_people_nvblox_bringup/my_people_nvblox_bringup/panda_voxel_classifier.py`

### Distance estimation

- [Closest voxel pair](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py): `src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py`
- [Distance plotting](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/my_people_nvblox_bringup/my_people_nvblox_bringup/plot_filtered_distance.py): `src/my_people_nvblox_bringup/my_people_nvblox_bringup/plot_filtered_distance.py`

### Robot alignment and motion

- [ArUco camera alignment](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_camera_alignment/panda_camera_alignment/aruco_align.py): `src/panda_camera_alignment/panda_camera_alignment/aruco_align.py`
- [Panda control launch](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_pick_place/launch/panda_control.launch.py): `src/panda_pick_place/launch/panda_control.launch.py`
- [Pick-and-place controller](https://github.com/irac-lab/real-panda-human-voxel-distance/blob/main/src/panda_pick_place/panda_pick_place/pick_place_node.py): `src/panda_pick_place/panda_pick_place/pick_place_node.py`

### Other components

- **Operator**
- **Panda and RealSense**

## Connections

- Operator → Real-robot launch: launches (evidence: `README.md`)
- Real-robot launch → Perception launch: includes (evidence: `src/panda_real_bringup/launch/panda_realsense_people.launch.py`)
- Perception launch → People segmentation: configures (evidence: `src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py`)
- People segmentation → PeopleSemSegNet model: loads model (evidence: `src/my_people_nvblox_bringup/launch/perception/segmentation.launch.py`)
- Panda and RealSense → People segmentation: color images (evidence: `README.md`)
- Panda and RealSense → ArUco camera alignment: camera images (evidence: `src/panda_camera_alignment/panda_camera_alignment/aruco_align.py`)
- Real-robot launch → Voxel mapping: configures (evidence: `src/panda_real_bringup/launch/panda_realsense_people.launch.py`)
- People segmentation → Voxel mapping: provides masks
- Panda and RealSense → Voxel mapping: depth input (evidence: `README.md`)
- Real-robot launch → Panda voxel classifier: starts (evidence: `src/panda_real_bringup/launch/panda_realsense_people.launch.py`)
- Panda and RealSense → Panda voxel classifier: robot TF (evidence: `README.md`)
- Real-robot launch → Closest voxel pair: starts (evidence: `src/panda_real_bringup/launch/panda_realsense_people.launch.py`)
- Voxel mapping → Closest voxel pair: human voxels (evidence: `src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py`)
- Panda voxel classifier → Closest voxel pair: Panda voxels (evidence: `src/my_people_nvblox_bringup/my_people_nvblox_bringup/closest_panda_human_voxels.py`)
- Closest voxel pair → Distance plotting: distance output
- Real-robot launch → People detection: optional pipeline
- Real-robot launch → Visual SLAM: optional pipeline
- Real-robot launch → RViz visualization: starts RViz (evidence: `src/panda_real_bringup/launch/panda_realsense_people.launch.py`)
- Operator → Panda control launch: launches (evidence: `README.md`)
- Panda control launch → Panda and RealSense: controls arm (evidence: `src/panda_pick_place/launch/panda_control.launch.py`)
- Operator → Pick-and-place controller: runs (evidence: `README.md`)
- Pick-and-place controller → Panda and RealSense: commands motion (evidence: `README.md`)
- ArUco camera alignment → Panda and RealSense: publishes camera TF (evidence: `src/panda_camera_alignment/panda_camera_alignment/aruco_align.py`)
