feat(phase-1): implement warehouse domain models, topological graph builder, connectivity validation, and export

This commit is contained in:
Warehouse Twin Dev
2026-10-19 15:12:38 +05:30
parent 7ef65ce65d
commit 88b922a3e1
13 changed files with 1535 additions and 50 deletions
+22
View File
@@ -5,6 +5,28 @@ 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.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