feat(phase-4): implement spatial routing, time-space reservations, and traffic manager

- Implemented PathPlanner using NetworkX Dijkstra/A* with dynamic edge congestion weights and robot capability enforcement.
- Implemented TimeSpaceReservationGrid with head-on collision avoidance on bidirectional corridors and 1.0s following headway buffers.
- Implemented TrafficManager with multi-AMR right-of-way arbitration (task priority, loaded over empty) and deadlock timeout dynamic rerouting.
- Integrated waypoint traversal into SimPy simulation engine with real-time trajectory recording and export.
- Generated omniverse/scenes/warehouse_phase4.usda with navigation corridor overlays.
- Expanded test suite to 95 unit tests with 100% pass rate.
This commit is contained in:
2026-10-21 10:59:11 +05:30
parent 3d9fb6be66
commit 56806079a9
20 changed files with 3225 additions and 104 deletions
+6 -4
View File
@@ -123,8 +123,10 @@ The testing architecture adheres to the following principles:
- **Phase 1 (Warehouse Model)**: Topological navigation graph, reachability validation, zone restrictions, graph JSON export.
- **Phase 2 (Robot and Task Models)**: Robot state machine (`IDLE` through `CHARGING`), legal transition tables, task priority & lifecycle models, inventory catalog with stock reservation & replenishment, telemetry events, OpenUSD robot fleet visualization.
- **Phase 3 (Discrete-Event Simulation Engine)**: SimPy master clock execution, multi-zone order arrival streams (Zone A Poisson, Zone B wide-aisle Gaussian, Zone C scheduled feed, auto-replenishment), priority-based fleet dispatcher with NetworkX shortest-path scoring, robot mission lifecycles (transit, pick, drop, recharge), telemetry streaming, and `run-sim` CLI command. 72 passing unit tests.
- **Phase 4 Target**: Routing and Fleet Assignment:
- NetworkX dynamic shortest-path routing with congestion edge weights.
- Time-space reservation grids to eliminate intersection collisions and aisle deadlocks.
- Dynamic rerouting and cooperative yielding rules.
- **Phase 4 (Routing, Fleet Assignment & Traffic Management)**: NetworkX spatial shortest-path routing (`PathPlanner`), time-space reservation grids (`TimeSpaceReservationGrid`) with head-on avoidance and $1.0\text{s}$ headway buffers, cooperative traffic manager (`TrafficManager`) with priority-based right-of-way and deadlock bypass rerouting, trajectory export (`results/trajectories/trajectory_sim.json`), and OpenUSD scene with highway corridor overlays (`omniverse/scenes/warehouse_phase4.usda`). 95 passing unit tests.
- **Phase 5 Target**: Charging and Operational Constraints:
- Battery discharge curves based on payload weight, speed, and acceleration.
- Opportunity charging vs. mandatory low-battery return-to-base thresholds.
- Charging bay resource queues (SimPy `Resource`) with reservation and queuing logic.
- Production deadline constraints with late penalties and SLA monitoring.