feat(phase-7): implement OpenUSD animation, trajectory player, and Omniverse Kit extension

This commit is contained in:
2026-10-21 12:45:17 +05:30
parent 4c4419a06c
commit 630855252b
23 changed files with 15180 additions and 64 deletions
+31 -12
View File
@@ -93,8 +93,15 @@ The system decouples discrete-event simulation from 3D visualization, enabling d
- [x] Experiment execution & scenario comparison framework (`ExperimentRunner`, `ScenarioComparator`, Monte Carlo multi-seed execution, fleet size sweeps).
- [x] Comprehensive unit test suite (129 passed in 0.97s).
### Completed - Phase 7: NVIDIA Omniverse USD 3D Visualization
- [x] Time-sampled OpenUSD animation stage generator (`AnimatedUSDGenerator`, `warehouse_phase7_animated.usda`).
- [x] Native timeline scrubbing and playback in Omniverse Kit with zero extension dependencies.
- [x] Continuous trajectory player and spatial interpolator (`TrajectoryPlayer`, angular wrap-around handling, continuous battery SoC).
- [x] Interactive Omniverse Kit 110.4 extension (`omni.warehouse.twin.visualizer`, `omni.ui.Window`, live fleet HUD, playback controls).
- [x] Synchronized visual indicators (Status dome glow, battery health LED, cargo box attachment).
- [x] Comprehensive unit test suite (137 passed in 1.01s).
### Planned Roadmap
- **Phase 7**: NVIDIA Omniverse USD 3D visualization and trajectory playback (Planned - Next).
- **Phase 8**: Interactive operational dashboard.
- **Phase 9**: Optimization scenarios, layout variations, and final demonstration.
@@ -106,7 +113,7 @@ The system decouples discrete-event simulation from 3D visualization, enabling d
- **Python**: Python 3.12 (Host has 3.12.3; compatible with >= 3.10).
- **Core Dependencies**: `simpy` 4.1.2, `networkx` 3.7, `pytest` 9.1.1.
- **NVIDIA GPU**: NVIDIA GeForce RTX 5090 (Driver 580.178.04, CUDA 13.0).
- **NVIDIA Omniverse Kit**: Kit 110.4.0 (located at `/home/dmhai/nvidia-omniverse/kit-app-template`).
- **NVIDIA Omniverse Kit**: Kit 110.4.0 (located at `/home/dmhai/Desktop/nvidia-omniverse/kit-app-template`).
- **Isaac Sim**: **NOT required**. The core simulation operates completely independently of Isaac Sim.
---
@@ -209,19 +216,31 @@ The primary drive (`/`) has constrained free space (~8.9 GB free). To prevent di
---
## 9. Omniverse Visualization (Phase 7 Preview)
## 9. Omniverse Visualization (Phase 7)
The visualizer connects via file-based trajectory playback:
- Simulation writes time-stamped Cartesian coordinates to `results/trajectories/`.
- Omniverse Kit 110.4 loads the warehouse USD stage (`omniverse/scenes/`) and moves robot prims along the scheduled trajectory.
- Run command (available in Phase 7):
```bash
/home/dmhai/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/kit/kit /home/dmhai/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/apps/warehouse_twin.kit --ext-folder omniverse/extensions
```
The visualizer connects via file-based trajectory playback and time-sampled OpenUSD scenes:
### Option A: Native OpenUSD Timeline Playback (Zero Extensions Required)
1. Generate the animated OpenUSD scene:
```bash
warehouse-twin export-usd \
--trajectory results/trajectories/trajectory_default.json \
--output omniverse/scenes/warehouse_phase7_animated.usda
```
2. Launch Omniverse Kit:
```bash
/home/dmhai/Desktop/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/warehouse_twin.kit.sh
```
3. Open `omniverse/scenes/warehouse_phase7_animated.usda` via `File -> Open` and click **Play** (or press `Spacebar`) on the timeline toolbar!
### Option B: Interactive Trajectory Playback Extension
1. Launch Omniverse Kit.
2. Open `omniverse/scenes/warehouse_phase7.usda`.
3. The `omni.warehouse.twin.visualizer` window automatically provides Play/Pause controls, time scrubbing slider, speed multipliers ($0.5\times$ to $10.0\times$), and real-time fleet telemetry HUD.
---
## 10. Current Implementation Phase
**Current Phase**: **Phase 1: Warehouse Model (Completed)**.
**Next Phase**: **Phase 2: Robot and Task Models** (Awaiting user confirmation).
**Current Phase**: **Phase 7: Omniverse USD Visualization (COMPLETED)**.
**Next Phase**: **Phase 8: Operational Dashboard** (Planned).