Files
Warehouse-Digital-Twin-and-…/omniverse/README.md
T

56 lines
3.0 KiB
Markdown

# NVIDIA Omniverse Kit Integration: Warehouse Digital Twin
## 1. Overview
This directory contains assets, scene definitions, and integration documentation for the 3D visualization layer of the Warehouse Robot Fleet Digital Twin.
The visualizer connects to the discrete-event simulation engine via decoupled data contracts:
1. **Simulation Phase (Headless)**: The simulation engine runs in Python (`SimPy`), computes fleet task allocation, schedules routes, and exports time-indexed trajectory recordings (`results/trajectories/trajectory_<run_id>.json`).
2. **Visualization Phase (Omniverse Kit)**: NVIDIA Omniverse Kit loads the warehouse USD stage and plays back the AMR trajectories by updating prim transformation matrices along time steps.
---
## 2. Inspected Environment Findings
Inspection of the host system confirmed:
- **Kit Application Directory**: `/home/dmhai/Desktop/nvidia-omniverse/kit-app-template`
- **Kit Kernel Version**: `110.4.0+feature.386251.187cf21b.gl`
- **Application Target**: `_build/linux-x86_64/release/apps/warehouse_twin.kit`
- **Kit Launch Executable**: `_build/linux-x86_64/release/kit/kit`
- **Launch Script**: `_build/linux-x86_64/release/warehouse_twin.kit.sh`
- **Embedded Python Version**: Python 3.12 (cp312)
---
## 3. Directory Layout
```
omniverse/
├── README.md # Integration guide and Kit version documentation
├── extensions/ # Verified Kit extension structure (Phase 7)
│ └── omni.warehouse.twin.visualizer/ # Interactive playback extension
├── scenes/ # Generated warehouse OpenUSD scene files (.usda / .usd)
│ ├── warehouse_phase7.usda # Static facility stage with AMR fleet
│ └── warehouse_phase7_animated.usda # Dynamic time-sampled stage with playback tracks
└── assets/ # Lightweight USD primitives for AMRs, racks, and stations
```
---
## 4. Phase 7 Visualization Architecture
The visualizer provides two decoupled visualization workflows:
1. **Native OpenUSD Timeline Animation (`warehouse_phase7_animated.usda`)**:
- Embeds time-sampled transform tracks (`xformOp:translate.timeSamples`, `xformOp:rotateXYZ.timeSamples`).
- Dynamic status beacon colors (`primvars:displayColor.timeSamples`) reflecting robot operational states.
- Dynamic battery LED colors reflecting SoC degradation.
- Dynamic payload visibility toggling (`visibility.timeSamples`).
- Opens and scrubs directly in Omniverse Kit or any standard OpenUSD application without custom plugins.
2. **Interactive Omniverse Kit Extension (`omni.warehouse.twin.visualizer`)**:
- Subscribes to the Kit update loop via `omni.kit.app.get_app().get_update_event_stream()`.
- Provides an interactive `omni.ui.Window` with Play, Pause, Reset, Seek (scrub slider), and Speed Multipliers ($0.5\times$ to $10.0\times$).
- Real-time fleet telemetry HUD table showing states, coordinates, battery %, and carried payload.
- Clean unsubscription and resource teardown on shutdown.