196 lines
13 KiB
Markdown
196 lines
13 KiB
Markdown
# Project Status: Warehouse Robot Fleet Digital Twin
|
|
|
|
**Last Updated**: October 21, 2026
|
|
**Current Phase**: **Phase 8: Operational Dashboard (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** |
|
|
| **Phase 8** | **Operational dashboard** | **COMPLETED** | **144 passed (100%)** |
|
|
| Phase 9 | Optimization and final demonstration | Planned (Next) | - |
|
|
|
|
---
|
|
|
|
## 2. Completed Tasks (Phase 8)
|
|
|
|
- [x] Implemented Dashboard Telemetry & Data Provider (`src/warehouse_twin/dashboard/data_provider.py`):
|
|
- Strictly read-only file scanner scanning `results/experiments/` and `results/reports/`.
|
|
- Typed parsing of `kpi_summary.json`, `config.json`, `robots.csv`, `tasks.csv`, and `aisle_congestion.csv`.
|
|
- Dynamic Markdown scenario comparison table parser (`fleet_size_comparison.md`, `dispatch_policy_comparison.md`).
|
|
- Raw SVG vector extractor for spatial congestion heatmaps (`congestion_heatmap.svg`).
|
|
- Unit test suite: 3 passed in `tests/unit/test_dashboard_data_provider.py`.
|
|
- [x] Implemented Multi-Threaded HTTP Server & REST API (`src/warehouse_twin/dashboard/server.py`):
|
|
- Zero-external-dependency web server built on standard library `http.server.ThreadingHTTPServer`.
|
|
- REST API endpoints:
|
|
- `GET /api/health`: Health status & version check.
|
|
- `GET /api/experiments`: Enumerates simulation runs with high-level KPI previews.
|
|
- `GET /api/experiments/<id>`: Full experiment payload (config, KPIs, robot states, task distributions, bottlenecks).
|
|
- `GET /api/experiments/<id>/heatmap.svg`: Scalable vector congestion heatmap (`image/svg+xml`).
|
|
- `GET /api/experiments/<id>/report`: Raw markdown simulation report text.
|
|
- `GET /api/scenarios`: Multi-parameter scenario comparison tables (fleet sizing & dispatch heuristics).
|
|
- Production-grade HTTP headers: CORS (`Access-Control-Allow-Origin: *`), cache control, error handling (404/500 JSON payloads).
|
|
- Unit test suite: 2 passed in `tests/unit/test_dashboard_server.py`.
|
|
- [x] Built Interactive Single-Page Application (`src/warehouse_twin/dashboard/static/`):
|
|
- `index.html`: Semantic layout with navigation bar, live polling status pill, tab controls, KPI card grid, AMR fleet table, congestion visualizer, scenario comparison matrix, and full report markdown viewer.
|
|
- `app.css`: Custom Vanilla CSS dark-mode glassmorphic theme (`Inter`, `JetBrains Mono`, gradient accents, glowing indicators, responsive flex/grid layouts, state badge pills).
|
|
- `app.js`: Reactive SPA controller with dynamic run switching, 5-second automatic telemetry polling, interactive SVG embedding, battery gauge indicators, and report download support.
|
|
- [x] Optional Streamlit Web Interface (`src/warehouse_twin/dashboard/streamlit_app.py`):
|
|
- Alternate Streamlit dashboard guarded by lazy import checks (`try ... except ImportError`).
|
|
- Runs cleanly if Streamlit is installed; fails gracefully with install instructions if not.
|
|
- Unit test suite: 2 passed in `tests/unit/test_optional_dependencies.py`.
|
|
- [x] CLI Subcommand Added (`src/warehouse_twin/cli.py`):
|
|
- `warehouse-twin dashboard [--host HOST] [--port PORT] [--results-dir DIR]`: One-command dashboard server launch.
|
|
- [x] Documentation & Changelog: Created `docs/phases/phase_8_operational_dashboard.md`, updated `CHANGELOG.md`, `README.md`, and `PROJECT_STATUS.md`.
|
|
- [x] Test Suite: Expanded to **144 passed unit tests (100% pass rate in 2.49s)**.
|
|
|
|
---
|
|
|
|
## 3. Completed Tasks (Phase 7)
|
|
|
|
- [x] 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^\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.
|
|
- Unit test suite: 4 passed in `tests/unit/test_trajectory_player.py`.
|
|
- [x] 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`.
|
|
- [x] 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`.
|
|
- [x] 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-env` to detect host Kit at `/home/dmhai/Desktop/nvidia-omniverse/kit-app-template`.
|
|
- [x] Documentation & Changelog: Created `docs/phases/phase_7_omniverse_usd_visualization.md`, updated `CHANGELOG.md`, `README.md`, and `omniverse/README.md`.
|
|
- [x] Test Suite: Expanded to **137 passed unit tests (100% pass rate in 1.01s)**.
|
|
|
|
---
|
|
|
|
## 4. Completed Tasks (Phase 6)
|
|
|
|
- [x] Implemented Comprehensive KPI Calculator (`src/warehouse_twin/analytics/kpi_calculator.py`):
|
|
- Linear rank-interpolated percentile calculation ($p_{50}$, $p_{90}$, $p_{95}$, $p_{99}$) and `DistributionStats` computation.
|
|
- 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`.
|
|
- [x] 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`, and `kpi_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`.
|
|
- [x] 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 $\rightarrow$ red).
|
|
- 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`.
|
|
- [x] 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.
|
|
- [x] 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, 8$ AMRs) 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 in `tests/unit/test_scenario_comparison.py`.
|
|
- [x] CLI Subcommands Added (`src/warehouse_twin/cli.py`):
|
|
- `warehouse-twin run-experiment --config ... --duration ... --seed ... --output-dir ...`
|
|
- `warehouse-twin compare-scenarios --config ... --output-dir ...`
|
|
- [x] Documentation & Changelog: Created `docs/phases/phase_6_analytics_and_experiment_framework.md`, updated `CHANGELOG.md` and `README.md`.
|
|
- [x] Test Suite: Expanded to **129 passed unit tests (100% pass rate in 0.99s)**.
|
|
|
|
---
|
|
|
|
## 5. Test & Validation Summary
|
|
|
|
- **Total Unit Tests Executed**: 144
|
|
- **Passed**: 144
|
|
- **Failed**: 0
|
|
- **Execution Time**: ~2.49 seconds
|
|
- **Test Suites**:
|
|
- `test_environment.py`: 5 passed
|
|
- `test_logging.py`: 3 passed
|
|
- `test_config_loader.py`: 9 passed
|
|
- `test_warehouse_graph.py`: 12 passed
|
|
- `test_robot_model.py`: 14 passed
|
|
- `test_task_model.py`: 9 passed
|
|
- `test_inventory_model.py`: 4 passed
|
|
- `test_events_model.py`: 1 passed
|
|
- `test_order_generator.py`: 6 passed
|
|
- `test_dispatcher.py`: 4 passed
|
|
- `test_path_planner.py`: 9 passed
|
|
- `test_reservations.py`: 7 passed
|
|
- `test_traffic_manager.py`: 7 passed
|
|
- `test_battery_model.py`: 6 passed
|
|
- `test_charging_manager.py`: 3 passed
|
|
- `test_production_deadlines.py`: 3 passed
|
|
- `test_task_reassignment.py`: 2 passed
|
|
- `test_stockout_and_replenishment.py`: 1 passed
|
|
- `test_sim_engine.py`: 5 passed
|
|
- `test_trajectory_export.py`: 1 passed
|
|
- `test_kpi_calculator.py`: 5 passed
|
|
- `test_event_store.py`: 4 passed
|
|
- `test_heatmap.py`: 4 passed
|
|
- `test_experiment_runner.py`: 4 passed
|
|
- `test_scenario_comparison.py`: 2 passed
|
|
- `test_trajectory_player.py`: 4 passed
|
|
- `test_animated_usd.py`: 2 passed
|
|
- `test_kit_extension.py`: 2 passed
|
|
- `test_dashboard_data_provider.py`: 3 passed
|
|
- `test_dashboard_server.py`: 2 passed
|
|
- `test_optional_dependencies.py`: 2 passed
|
|
|
|
---
|
|
|
|
## 6. 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 |
|
|
|
|
|