44 lines
2.1 KiB
Markdown
44 lines
2.1 KiB
Markdown
# NVIDIA Omniverse Kit Integration: Warehouse Digital Twin
|
|
|
|
## 1. Overview
|
|
|
|
This directory contains assets, scene definitions, and integration documentation for the 3D visualization layer of the Warehouse Robot Fleet Digital Twin.
|
|
|
|
The visualizer connects to the discrete-event simulation engine via decoupled data contracts:
|
|
1. **Simulation Phase (Headless)**: The simulation engine runs in Python (`SimPy`), computes fleet task allocation, schedules routes, and exports time-indexed trajectory recordings (`results/trajectories/trajectory_<run_id>.json`).
|
|
2. **Visualization Phase (Omniverse Kit)**: NVIDIA Omniverse Kit loads the warehouse USD stage and plays back the AMR trajectories by updating prim transformation matrices along time steps.
|
|
|
|
---
|
|
|
|
## 2. Inspected Environment Findings
|
|
|
|
Inspection of the host system confirmed:
|
|
- **Kit Application Directory**: `/home/dmhai/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`
|
|
- **Embedded Python Version**: Python 3.12 (cp312)
|
|
|
|
---
|
|
|
|
## 3. Directory Layout
|
|
|
|
```
|
|
omniverse/
|
|
├── README.md # Integration guide and Kit version documentation
|
|
├── extensions/ # Verified Kit extension structure (Phase 7)
|
|
├── scenes/ # Generated warehouse OpenUSD scene files (.usda / .usd)
|
|
└── assets/ # Lightweight USD primitives for AMRs, racks, and stations
|
|
```
|
|
|
|
---
|
|
|
|
## 4. Phase 7 Visualization Architecture Preview
|
|
|
|
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.
|