Files
Warehouse-Digital-Twin-and-…/CHANGELOG.md
T
AyushS 56806079a9 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.
2026-10-21 10:59:11 +05:30

11 KiB

Changelog

All notable changes to the Warehouse Robot Fleet Digital Twin will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[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

  • Wider Aisles in Zone B:
    • Configured config/warehouse.json with aisle_width: 4.0 for Zone B (slow-moving & heavy specialized items).
    • Updated WarehouseGraphBuilder to construct wide 4.0\text{m} aisle columns across Zone B (x \in [32, 36, 40, 44]), double the 2.0\text{m} spacing of Zone A, facilitating heavy AMR navigation with wide pallets and heavy loads.
    • Added unit test test_slow_moving_zone_b_has_wider_aisles.
  • Order Generation Engine (warehouse_twin.simulation.order_generator):
    • OrderGenerator and WorkloadConfig implementing multi-zone workload processes:
      • Zone A Poisson arrivals for fast-moving items (expovariate).
      • Zone B Gaussian arrivals for heavy components navigating wider aisles (gauss).
      • Zone C scheduled batch feeds for production-line delivery.
      • Automated stock replenishment order generation when inventory dips below minimum threshold.
      • Peak demand traffic scaling (1.5\times multiplier from 1200s to 2400s).
  • Fleet Dispatcher (warehouse_twin.simulation.dispatcher):
    • FleetDispatcher with priority queueing, sorting tasks by priority, deadline, and release time.
    • Compatibility validation enforcing payload capacity ratings, battery headroom filtering (20\%), and Zone B restrictions.
    • Nearest-idle robot selection based on graph network routing distances.
  • SimPy Discrete-Event Simulation Core (warehouse_twin.simulation.sim_engine):
    • SimulationEnvironment managing master clock, discrete order arrival processes, and dispatcher daemon.
    • Robot mission lifecycle execution: empty transit, picking, stock reservation/consumption, loaded transit, dropoff, and automatic opportunity/mandatory recharging.
    • Real-time event streaming to JSONL (logs/simulation_events.jsonl).
    • SimulationMetrics computing throughput, turnaround, wait times, on-time delivery rate, fleet utilization, and energy consumption.
  • CLI Subcommand:
    • warehouse-twin run-sim: supports --duration, --seed, --config-dir, and --output-events.
  • Expanded test suite to 72 unit tests (16 new Phase 3 tests, 100% pass rate in 0.37s).
  • Comprehensive Phase 3 implementation report in docs/phases/phase_3_simulation_engine.md.

[0.3.0] - 2026-10-19

Added - Phase 2: Robot and Task Models

  • Domain entity models for Autonomous Mobile Robots (warehouse_twin.domain.robot):
    • RobotState enum representing operational lifecycle states (IDLE, DISPATCHED, PICKING, LOADED_TRANSIT, DROPPING, TRANSIT_TO_CHARGE, CHARGING, MAINTENANCE).
    • Strict transition lookup table LEGAL_ROBOT_TRANSITIONS preventing illegal state transitions with InvalidStateTransitionError.
    • RobotTypeSpec parsing config/robots.json specifications for light and heavy AMRs.
    • Robot model managing kinematics, battery capacity, linear energy consumption (idle, moving, loaded), fast-charging, active tasks, routes, and allowed zones.
    • Pre-assignment validation Robot.validate_task_compatibility(task) enforcing payload capacity and zone restrictions (IncompatibleRobotTaskError).
  • Domain models for warehouse tasks (warehouse_twin.domain.task):
    • TaskType enum (INBOUND_TRANSPORT, OUTBOUND_PICKING, PRODUCTION_FEED, REPLENISHMENT, CHARGING).
    • TaskStatus enum (PENDING, ASSIGNED, IN_PROGRESS, COMPLETED, CANCELLED, FAILED) enforced by LEGAL_TASK_TRANSITIONS.
    • Task dataclass tracking creation time, assignment time, start/completion times, turnaround time, queue wait time, execution duration, and SLA deadline overdue checks.
  • Inventory item and catalog models (warehouse_twin.domain.inventory):
    • InventoryItem with available/reserved quantities, unit weight, reorder threshold, and restocking amounts.
    • InventoryCatalog loading 13 SKUs from config/inventory.json with stock reservation, consumption, and replenishment trigger checks.
  • Event telemetry models (warehouse_twin.domain.events):
    • SimulationEventType and SimulationEvent dataclass with ISO8601 formatting and JSONL serialization.
  • OpenUSD generator enhancements (warehouse_twin.interfaces.usd_generator):
    • WarehouseUSDGenerator.from_config_bundle now renders the active AMR fleet with realistic geometry (pearl white for light AMRs, industrial amber for heavy AMRs, with illuminated status domes).
    • Exported OpenUSD 3D stage omniverse/scenes/warehouse_phase2.usda.
  • 30 new unit tests covering robot states, task lifecycles, inventory dynamics, telemetry events, and USD robot generation (56 total unit tests passing in 0.24s).
  • Implementation report in docs/phases/phase_2_robot_and_task_models.md.

[0.2.0] - 2026-10-19

Added - Phase 1: Warehouse Model

  • Complete warehouse domain entities in warehouse_twin.domain.warehouse: Position3D, WarehouseDimensions, ZoneArea, ZoneDefinition, Station, ChargingStation, StorageLocation, WarehouseNode, WarehouseEdge, and WarehouseModel.
  • Topological navigation graph builder (WarehouseGraphBuilder in warehouse_twin.routing.graph_builder):
    • Unified coordinate hashing producing deterministic 540-node, 1,730-edge directed graph.
    • Multi-lane perimeter highway network (West, South, North, East) and inter-zone transfer corridors at x=26\text{m} and x=46\text{m}.
    • Detailed internal grid networks across Zone A (fast-moving), Zone B (slow-moving/heavy), and Zone C (production supply).
    • Explicit bindings for 6 stations (2 inbound docks, 1 outbound pack dock, 2 picking stations, 1 production line feed).
    • Explicit bindings for 4 fast/heavy charging bays.
    • Explicit bindings for 13 storage rack locations mapped to inventory catalog items.
  • Operational zone restrictions: Zone B aisles restricted exclusively to heavy_amr AMR classes.
  • Connectivity and topology verification engine (validate_connectivity):
    • Strong connectivity verification (1 strongly connected component).
    • Complete station, charger, and rack reachability verification.
    • Sub-graph robot class access verification.
    • Custom exceptions DisconnectedGraphError and UnreachableStationError.
  • JSON graph topology serialization (export_topology_dict, export_json exporting to results/reports/warehouse_graph.json).
  • CLI subcommands: warehouse-twin validate-graph and warehouse-twin export-graph.
  • Unit test suite expanded to 26 tests (9 new graph unit tests, 100% pass rate in 0.21s).
  • Comprehensive Phase 1 implementation report in docs/phases/phase_1_warehouse_model.md.

[0.1.0] - 2026-10-19

Added - Phase 0: Environment and Project Foundation

  • Initial project directory layout adhering strictly to master prompt specifications.
  • Host environment inspection identifying Ubuntu 24.04.3 LTS, Python 3.12.3, NVIDIA RTX 5090 GPU (Driver 580.178.04), and 8.9 GB disk availability.
  • Omniverse Kit inspection discovering installed Kit 110.4.0 and base app warehouse_twin.kit under /home/dmhai/nvidia-omniverse/kit-app-template.
  • Python packaging configuration (pyproject.toml) with dependencies on simpy 4.1.2, networkx 3.7, and pytest 9.1.1.
  • .gitignore and .env.example with secondary drive relocation parameters.
  • Base configurations in config/:
    • warehouse.json: 60m x 40m facility with Zones A, B, C, inbound docks, picking stations, production drop-offs, and charging bays.
    • robots.json: Light AMR and Heavy AMR definitions with speed, payload, and energy models.
    • inventory.json: Fast-moving, slow-moving, and production raw material item catalogs.
    • simulation.json: Discrete-event parameters, arrival rates, and random seed.
    • dispatch_policies.json: Dispatch policy definitions and traffic reservation settings.
  • Structured rotating logging module (warehouse_twin.logging_config) managing application.log, simulation.log, and errors.log.
  • Robust configuration loader (warehouse_twin.config.loader) with schema validation.
  • Command-line interface (warehouse_twin.cli) supporting validate-env and validate-config.
  • Automated shell verification scripts: scripts/check_environment.sh and scripts/run_tests.sh.
  • Comprehensive unit test suite in tests/unit/ (17 tests passing in 0.09s).
  • Full documentation suite: README.md, IMPLEMENTATION_DETAILS.md, PROJECT_STATUS.md, docs/ARCHITECTURE.md, docs/INSTALLATION.md, docs/USER_GUIDE.md, docs/API_AND_DATA_CONTRACTS.md, docs/TESTING.md, docs/DECISIONS.md, docs/phases/phase_0_foundation.md, and omniverse/README.md.