9.8 KiB
9.8 KiB
Project Status: Warehouse Robot Fleet Digital Twin
Last Updated: October 21, 2026
Current Phase: Phase 7: Omniverse USD Visualization (COMPLETED)
Status: Ready for User Review and Approval
1. Phase Tracker
| Phase | Description | Status | Test Coverage |
|---|---|---|---|
| Phase 0 | Environment and project foundation | COMPLETED | 17 passed |
| Phase 1 | Warehouse model | COMPLETED | 26 passed |
| Phase 2 | Robot and task models | COMPLETED | 56 passed |
| Phase 3 | Discrete-event simulation | COMPLETED | 72 passed |
| Phase 4 | Routing and fleet assignment | COMPLETED | 95 passed |
| Phase 5 | Charging and operational constraints | COMPLETED | 110 passed |
| Phase 6 | Analytics and experiment framework | COMPLETED | 129 passed |
| Phase 7 | Omniverse USD visualization | COMPLETED | 137 passed (100%) |
| Phase 8 | Operational dashboard | Planned (Next) | - |
| Phase 9 | Optimization and final demonstration | Planned | - |
2. Completed Tasks (Phase 7)
- Implemented Continuous Spatial Interpolation & Playback Engine (
src/warehouse_twin/visualization/trajectory_player.py):- Linear Cartesian interpolation between simulation waypoints.
- Shortest-arc circular angular interpolation of heading angle (
yaw_degrees) with-180^\circ \leftrightarrow 180^\circwrap-around handling. - Continuous battery SoC interpolation and discrete payload cargo attachment.
- Complete playback state machine (
play,pause,toggle,reset,seek,advance,set_speed) supporting0.5\timesto50.0\timesspeeds. - Safe subscriber callback registration and leak-free unregistration.
- Unit test suite: 4 passed in
tests/unit/test_trajectory_player.py.
- Implemented Time-Sampled OpenUSD Scene Generator (
src/warehouse_twin/visualization/animated_usd.py):- 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). - Unit test suite: 2 passed in
tests/unit/test_animated_usd.py.
- Direct export of time-sampled OpenUSD ASCII stages (
- Implemented NVIDIA Omniverse Kit 110.4 Extension (
omniverse/extensions/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. - Unit test suite: 2 passed in
tests/unit/test_kit_extension.py.
- Native Kit extension (
- CLI Subcommands Added & Enhanced (
src/warehouse_twin/cli.py):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-envto detect host Kit at/home/dmhai/Desktop/nvidia-omniverse/kit-app-template.
- Documentation & Changelog: Created
docs/phases/phase_7_omniverse_usd_visualization.md, updatedCHANGELOG.md,README.md, andomniverse/README.md. - Test Suite: Expanded to 137 passed unit tests (100% pass rate in 1.01s).
2. Completed Tasks (Phase 6)
- Implemented Comprehensive KPI Calculator (
src/warehouse_twin/analytics/kpi_calculator.py):- Linear rank-interpolated percentile calculation (
p_{50},p_{90},p_{95},p_{99}) andDistributionStatscomputation. - Strict isolation of incomplete tasks (pending and in-progress) from completed turnaround and execution latency metrics.
- Throughput, turnaround time, queue waiting time, mission execution time, and on-time SLA compliance tracking.
- Fleet operational efficiency: utilization percentage, loaded vs. empty distance traveled, loaded ratio %, and energy intensity (
\text{kWh}/\text{task}). - Charging bay occupancy, charging wait times, and per-task-type performance breakdowns (
ORDER_PICK,PRODUCTION_LINE_FEED,REPLENISHMENT). - Unit test suite: 5 passed in
tests/unit/test_kpi_calculator.py.
- Linear rank-interpolated percentile calculation (
- Implemented Dual-Path Telemetry & Event Storage (
src/warehouse_twin/storage/event_store.py):- Event streaming and file export:
events.jsonl,tasks.csv,robots.csv,aisle_congestion.csv, andkpi_summary.json. - Typed reader utilities (
load_events,load_tasks,load_kpis) for automated post-simulation reporting. - Unit test suite: 4 passed in
tests/unit/test_event_store.py.
- Event streaming and file export:
- Implemented Spatial Congestion Heatmap & Bottleneck Diagnosis (
src/warehouse_twin/analytics/heatmap.py):- Composite congestion scoring (
[0.0, 1.0]) weighting 40% traversal density and 60% delay wait time. - Scalable 2D SVG heatmap generator (
congestion_heatmap.svg) displaying warehouse zones (A, B, C), stations, charging bays, and color-graded edges (green\rightarrowred). - Terminal-friendly ASCII grid floorplan renderer (
congestion_heatmap.txt). - Automated corridor bottleneck diagnostic engine identifying hot spots with severity classifications (
INFO,WARNING,CRITICAL) and actionable mitigation strategies. - Unit test suite: 4 passed in
tests/unit/test_heatmap.py.
- Composite congestion scoring (
- Implemented Audit-Ready Executive Report Generator (
src/warehouse_twin/analytics/report_generator.py):- Structured GitHub-flavored Markdown reports (
report.md) containing executive summary tables, distribution percentiles, individual AMR telemetry matrices, and corridor bottleneck diagnosis.
- Structured GitHub-flavored Markdown reports (
- Implemented Repeatable Experiment & Scenario Comparison Framework (
src/warehouse_twin/analytics/experiment_runner.py):- Deterministic PRNG seed control for single-seed and multi-seed Monte Carlo evaluations with 95% confidence intervals.
- Scenario parameter sweeps for fleet sizing (
2, 4, 6, 8AMRs) and dispatch policies (priority_nearest_idle,nearest_idle,balanced_utilization). - Markdown comparison tables highlighting trade-offs between fleet size, throughput, fleet utilization, and corridor contention.
- Unit test suites: 4 passed in
tests/unit/test_experiment_runner.py, 2 passed intests/unit/test_scenario_comparison.py.
- CLI Subcommands Added (
src/warehouse_twin/cli.py):warehouse-twin run-experiment --config ... --duration ... --seed ... --output-dir ...warehouse-twin compare-scenarios --config ... --output-dir ...
- Documentation & Changelog: Created
docs/phases/phase_6_analytics_and_experiment_framework.md, updatedCHANGELOG.mdandREADME.md. - Test Suite: Expanded to 129 passed unit tests (100% pass rate in 0.99s).
3. Test & Validation Summary
- Total Unit Tests Executed: 137
- Passed: 137
- Failed: 0
- Execution Time: ~1.01 seconds
- Test Suites:
test_environment.py: 5 passedtest_logging.py: 3 passedtest_config_loader.py: 9 passedtest_warehouse_graph.py: 12 passedtest_robot_model.py: 14 passedtest_task_model.py: 9 passedtest_inventory_model.py: 4 passedtest_events_model.py: 1 passedtest_order_generator.py: 6 passedtest_dispatcher.py: 4 passedtest_path_planner.py: 9 passedtest_reservations.py: 7 passedtest_traffic_manager.py: 7 passedtest_battery_model.py: 6 passedtest_charging_manager.py: 3 passedtest_production_deadlines.py: 3 passedtest_task_reassignment.py: 2 passedtest_stockout_and_replenishment.py: 1 passedtest_sim_engine.py: 5 passedtest_trajectory_export.py: 1 passedtest_kpi_calculator.py: 5 passedtest_event_store.py: 4 passedtest_heatmap.py: 4 passedtest_experiment_runner.py: 4 passedtest_scenario_comparison.py: 2 passedtest_trajectory_player.py: 4 passedtest_animated_usd.py: 2 passedtest_kit_extension.py: 2 passed
4. Benchmark Performance (Baseline 1-Hour Run vs. Fleet Sweep)
Baseline 1-Hour Run (4 AMRs, Seed 42)
- Simulated Duration: 3,600.0s (1.00 hour)
- Wall-clock Execution Time: 0.272s
- Tasks Created: 86
- Tasks Completed: 85 (1 in progress at cutoff)
- Throughput: 85.00 tasks/hr
- Turnaround Latency: Mean: 91.2s |
p_{50}: 74.4s |p_{90}: 167.3s |p_{95}: 194.2s |p_{99}: 216.5s - Queue Waiting Time: Mean: 29.8s |
p_{50}: 11.2s |p_{90}: 108.4s - Execution Latency: Mean: 61.3s |
p_{50}: 57.0s |p_{90}: 83.2s - On-Time Delivery Rate: 100.0% (0 SLA deadline violations)
- Fleet Utilization: 50.9%
- Loaded Distance Ratio: 58.7% (2,430.0m loaded / 4,140.0m total)
- Energy Intensity: 0.092 kWh / task (7.82 kWh total consumed)
- Charging Sessions: 4 completed (Queue wait time: 0.0s)
Fleet Sizing Parameter Sweep Findings
| Metric | 2 AMRs | 4 AMRs (Baseline) | 6 AMRs | 8 AMRs |
|---|---|---|---|---|
| Throughput (tasks/hr) | 77.00 | 85.00 | 85.00 | 85.00 |
| Fleet Utilization | 95.6% (Saturated) | 50.9% (Optimal) | 32.7% | 23.4% |
| Mean Turnaround | 315.6s | 91.2s | 63.8s | 61.5s |
| Mean Queue Time | 253.9s | 29.8s | 2.5s | 0.2s |
| On-Time SLA % | 71.4% (Severe delays) | 100.0% | 100.0% | 100.0% |
| Corridor Conflicts | 17 | 36 | 45 | 51 |