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
+30
View File
@@ -5,6 +5,36 @@ All notable changes to the Warehouse Robot Fleet Digital Twin will be documented
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.8.0] - 2026-10-21
### Added - Phase 7: NVIDIA Omniverse USD 3D Visualization & Trajectory Playback
- **Continuous Spatial Interpolation & Playback Engine** (`warehouse_twin.visualization.trajectory_player`):
- Linear Cartesian interpolation of position coordinates $(X, Y, Z)$ between simulation waypoints.
- Shortest-arc circular angular interpolation of heading angle (`yaw_degrees`) with $-180^\circ \leftrightarrow 180^\circ$ wrap-around handling.
- Continuous battery SoC interpolation and discrete payload cargo attachment.
- Complete playback state machine (`play`, `pause`, `toggle`, `reset`, `seek`, `advance`, `set_speed`) supporting $0.5\times$ to $50.0\times$ speeds.
- Safe subscriber callback registration and leak-free unregistration.
- **Time-Sampled OpenUSD Scene Generator** (`warehouse_twin.visualization.animated_usd`):
- Direct export of time-sampled OpenUSD ASCII stages (`warehouse_phase7_animated.usda`).
- Native playback support via Omniverse Kit's timeline (`omni.timeline`) without extension dependencies.
- Time-sampled translation (`xformOp:translate.timeSamples`) and rotation (`xformOp:rotateXYZ.timeSamples`).
- Dynamic status dome color samples (`primvars:displayColor.timeSamples`) reflecting robot operational states.
- Dynamic battery LED bar color samples reflecting battery health.
- Dynamic payload carton box visibility samples (`visibility.timeSamples`).
- **NVIDIA Omniverse Kit 110.4 Extension** (`omni.warehouse.twin.visualizer`):
- Native Kit extension (`omni.ext.IExt`) compatible with Kit 110.4.
- Interactive UI Window (`omni.ui.Window`): trajectory file loader, playback buttons, scrub slider, speed selectors, and live AMR fleet HUD table.
- Frame-by-frame stage prim transformation updates driven by Kit's update loop (`omni.kit.app.get_app().get_update_event_stream()`).
- Clean shutdown handler guaranteeing zero dangling update callbacks or lingering subscriptions.
- Symlinked directly into Kit release `exts/` directory for automatic discovery.
- **CLI Subcommands**:
- `warehouse-twin export-usd --trajectory <path> --output <path>`: Generates time-sampled animated USD scenes.
- `warehouse-twin play-trajectory <path> --step <secs>`: Validates kinematics and previews fleet playback in terminal.
- Updated `validate-env` to detect host Kit at `/home/dmhai/Desktop/nvidia-omniverse/kit-app-template`.
- **Unit Test Suite**:
- Added 8 unit tests across `test_trajectory_player.py`, `test_animated_usd.py`, and `test_kit_extension.py`.
- Expanded test suite to **137 passed unit tests (100% pass rate in 1.01s)**.
## [0.7.0] - 2026-10-21
### Added - Phase 6: Analytics and Experiment Framework