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:
@@ -5,6 +5,38 @@ All notable changes to the Warehouse Robot Fleet Digital Twin will be documented
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.5.0] - 2026-10-21
|
||||
|
||||
### Added - Phase 4: Routing, Fleet Assignment, and Traffic Management
|
||||
- **NetworkX Shortest-Path Planning Engine** (`warehouse_twin.routing.path_planner`):
|
||||
- `PathPlanner` supporting Dijkstra and A* path planning over directed warehouse navigation graphs.
|
||||
- Strict enforcement of robot capabilities (e.g. Light AMRs restricted from Zone B wide aisles).
|
||||
- Dynamic edge cost calculation incorporating congestion penalties from active reservation density.
|
||||
- Auto-resolution of entity identifiers (racks, charging bays, docks) to graph node coordinates.
|
||||
- Unreachable destination detection with descriptive `NoPathFoundError` diagnostics.
|
||||
- **Time-Space Reservation Grid** (`warehouse_twin.routing.reservations`):
|
||||
- `TimeSpaceReservationGrid` managing temporal reservations across navigation nodes and edges.
|
||||
- Head-on collision avoidance on bidirectional corridors, eliminating opposite-direction entry conflicts.
|
||||
- Trailing vehicle headway safety buffers ($1.0\,\text{s}$) preventing rear-end collisions.
|
||||
- Intersection exclusive single-occupancy zones with temporal clearance buffers.
|
||||
- Dynamic `find_earliest_free_departure` solver for safe scheduling.
|
||||
- Memory-efficient expired reservation purging.
|
||||
- **Traffic Manager & Cooperative Yielding** (`warehouse_twin.routing.traffic_manager`):
|
||||
- `TrafficManager` coordinating multi-AMR flow according to `config/dispatch_policies.json`.
|
||||
- Right-of-way arbitration: Priority 1 production feed > Priority 2 replenishment > Priority 4 picking; loaded AMRs maintain precedence over empty AMRs.
|
||||
- Cooperative waypoint waiting: yielding AMRs hold at preceding nodes until bottlenecks clear.
|
||||
- Deadlock detection with automatic dynamic bypass rerouting upon exceeding `deadlock_timeout_seconds`.
|
||||
- Comprehensive traffic metrics: conflicts detected, yield waits executed, wait durations, and replans.
|
||||
- **Physical Waypoint Simulation & Trajectory Export** (`warehouse_twin.simulation.sim_engine`):
|
||||
- Step-by-step physical waypoint transit in SimPy discrete-event simulation.
|
||||
- Real-time time-indexed motion trajectory export to `results/trajectories/trajectory_sim.json` conforming to project data contracts.
|
||||
- **OpenUSD Navigation Corridor Overlays** (`warehouse_twin.interfaces.usd_generator`):
|
||||
- Generated `omniverse/scenes/warehouse_phase4.usda` featuring visual highway corridors (cyan/blue) and Zone B wide aisles (industrial amber).
|
||||
- **Test Suite Expansion**:
|
||||
- Added 23 new unit tests across path planning, time-space reservations, traffic coordination, and trajectory recording.
|
||||
- Test suite expanded to **95 unit tests** (100% pass rate in 0.65s).
|
||||
- Implementation documentation in `docs/phases/phase_4_routing_and_fleet_assignment.md`.
|
||||
|
||||
## [0.4.0] - 2026-10-19
|
||||
|
||||
### Added - Phase 3: Discrete-Event Simulation Engine
|
||||
|
||||
Reference in New Issue
Block a user