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
@@ -0,0 +1,13 @@
# Changelog - omni.warehouse.twin.visualizer
## [0.7.0] - 2026-10-21
### Added
- Initial release of Omniverse Kit 110.4 visualizer extension.
- File-based trajectory loading for JSON simulation exports.
- Continuous spatial and heading interpolation engine (`TrajectoryPlayer`).
- Prim transform updates for robot translation and planar yaw.
- Status dome display color updates reflecting operational states.
- Payload visibility toggling during picking, transit, and dropping.
- Interactive playback controls: Play, Pause, Reset, Seek, Speed multipliers.
- Live Fleet Telemetry table in `omni.ui.Window`.
- Clean teardown and safe unsubscription handling.
@@ -0,0 +1,23 @@
# Warehouse Robot Fleet Digital Twin - Omniverse Visualizer Extension
## 1. Overview
The `omni.warehouse.twin.visualizer` extension brings discrete-event simulation recordings to life in NVIDIA Omniverse Kit.
It reads time-indexed AMR trajectory files (`results/trajectories/trajectory_*.json`), smoothly interpolates continuous 3D robot poses, and updates USD stage prims (`/World/Robots/{robot_id}`) along with visual status beacons and payload attachments.
## 2. Features
- **Dynamic 3D Trajectory Playback**: Real-time kinematic interpolation of AMR translations and rotations ($Z$-up, planar yaw).
- **Status Beacon Glow**: Visual state indications on `/World/Robots/{robot_id}/StatusDome` (Cyan for Idle, Blue for Dispatched, Green for Handling, Gold for Loaded Transit, Orange/Red for Charging).
- **Payload Box Attachment**: Automatic visibility toggling of carried pallet boxes on top of AMRs.
- **Interactive Playback Controls**: Play, Pause, Reset, Loop, Seek (scrub slider), and Speed Multipliers ($0.5\times, 1.0\times, 2.0\times, 5.0\times, 10.0\times$).
- **Live Fleet HUD**: Real-time matrix of all AMR states, battery levels, payload masses, and $(X, Y)$ coordinates.
- **Clean Subscription Teardown**: Automatically unsubscribes from Kit update loops upon shutdown to prevent memory leaks or dangling callbacks.
## 3. How to Enable in Omniverse Kit
1. Open Omniverse Kit using the project script:
```bash
/home/dmhai/Desktop/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/warehouse_twin.kit.sh
```
2. Open the warehouse USD scene (`File -> Open -> omniverse/scenes/warehouse_phase7.usda`).
3. Enable the extension in Extension Manager or load via Kit settings.
4. In the "Warehouse Twin Visualizer" window, select a trajectory file and press **Play**.