feat(phase-7): implement OpenUSD animation, trajectory player, and Omniverse Kit extension
This commit is contained in:
+20
-8
@@ -13,10 +13,11 @@ The visualizer connects to the discrete-event simulation engine via decoupled da
|
||||
## 2. Inspected Environment Findings
|
||||
|
||||
Inspection of the host system confirmed:
|
||||
- **Kit Application Directory**: `/home/dmhai/nvidia-omniverse/kit-app-template`
|
||||
- **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)
|
||||
|
||||
---
|
||||
@@ -27,17 +28,28 @@ Inspection of the host system confirmed:
|
||||
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 Preview
|
||||
## 4. Phase 7 Visualization Architecture
|
||||
|
||||
In Phase 7, the visualizer extension will:
|
||||
1. Load a parameterized USD stage representing the warehouse (Zones A, B, and C, picking stations, inbound docks, charging bays).
|
||||
2. Instantiate lightweight AMR prims (`/World/Robots/amr_light_01`, etc.).
|
||||
3. Subscribe to the Kit update loop via `omni.kit.app.get_app().get_update_event_stream()`.
|
||||
4. Synchronize simulation playback time with Kit wall-clock frames and update robot translation `(x, y, z)` and orientation `yaw`.
|
||||
5. Ensure clean teardown on extension shutdown or stage closing so no orphan subscriptions remain.
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user