feat(phase-7): implement OpenUSD animation, trajectory player, and Omniverse Kit extension
This commit is contained in:
@@ -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**.
|
||||
Reference in New Issue
Block a user