01
Warehouse robotics is fragmented. Every fleet runs its own language.
A modern warehouse runs a heterogeneous fleet - AGVs from one vendor, lifters from another, ASRS shelving from a third, scout robots stitched in for cycle counts. Each speaks its own protocol, exposes its own dashboard, and ships its own "simulator" that drifts from the real robot inside a year. The operator ends up running four parallel stacks and a fifth stack to glue them together.
The break shows up the first time a sim-trained behaviour hits the real floor and surprises the fleet. A pose normalisation differs by 0.3 degrees. A handover timeout differs by 200ms. A charge-station scheduler in the sim assumes a battery curve the real cell never had. Each gap is small. Together they kill trust in the simulator, and the operator stops using it.
WRIE was built to remove the gap by removing the second program. There is one binary. The simulator and the real fleet are two backends that bind to the same control loop at the device-driver layer.
02
The sim and the real are one program with two backends, identical at the bit level.
Fifteen thousand lines of C++17, running the same control loop, the same MAPF planner, the same VDA5050 message bus - switching only at the device-driver layer between a Gazebo backend and the real fleet on the floor. Bug fixes apply to both because there is no second place for them to apply. Sim-trained behaviours transfer to the real fleet because the code paths are the same code.
The sim and the real are not two systems. They are one binary with two backends.
03
One binary. Two backends. Eight layers.
Each layer is a contract - defined, versioned, tested. The implementation serves the contract; the contract never serves the implementation. Replace any layer in isolation, the rest of the stack does not notice.
- Autonomy core - C++17 control loop · MAPF planner · trajectory optimisation · pose normalisation
- Hardware abstraction - pluggable device-driver layer, Gazebo backend (sim) · real-fleet backend (production)
- Message bus - VDA5050-aligned MQTT · canonical pose envelope · audit log on every publish
- Fleet management - Multi-Agent Path Finding · zone arbitration · charge-station scheduling · failure handover
- API surface - 213+ FastAPI endpoints · contract-bound · OpenAPI-generated SDKs
- Control surface - React + WebSocket dashboard · live fleet state · order intake · teleoperation
- Replay engine - fleet trace recorder + deterministic re-driver, re-running any incident through the binary for forensic analysis
- Test harness - contract · property · soak suites · 1.7K+ tests · independent peer-model audit gate
05
Eighteen robots. One contract.
Across five real-world vendors. Every robot - wheel-based, lift-class, scout, or shelving system - speaks a single VDA5050-shaped surface to the binary. Vendor-specific quirks live in their drivers and stay there.
- AGV, Automated Guided Vehicles - wheel-based transport robots handling pallet moves, point-to-point delivery, and zone-to-zone shuttling. WRIE drives 8 AGV models from 3 vendors over a single VDA5050 surface.
- LIFTER, Forklift-class robots - vertical-lift robots for high-bay storage, pallet stacking, and inbound dock work, tightly coupled with the warehouse graph so the planner reasons about lift height, fork engagement, and drop tolerance.
- SCOUT, Inventory and inspection bots - lightweight perimeter robots that patrol aisles, validate barcode/QR labels on shelves, and feed cycle-count data back to the WMS, running on a faster control loop than transport robots.
- ASRS, Lift integrations - automated storage and retrieval systems: vertical and horizontal carousels, mini-loads, shuttle racks. WRIE speaks the vendor protocols (Daifuku, SSI Schäfer, Murata) and exposes them through the same job interface as a free-roaming robot.
06
What the operator actually touches.
Autonomy handles the easy 99%. The hard 1% - the stuck robots, the picks that need a human, the post-incident forensic - is where WRIE earns its keep.
- Teleoperation - when a robot reports a state outside the planner's recovery envelope (stuck, perception fault, environmental anomaly), an operator is paged with full context: the live camera feed, the planner's intended path, the last successful pose, and a one-click hand-back once the robot is clear.
- Pick stations - robots arriving at a pick station present their tote and load to a human picker through a dedicated UI: target SKU, quantity, target tote, and a confirmation barcode. WRIE locks the robot in place until the pick is confirmed and the receipt is signed.
- Fleet replay - every motion message, endpoint call, and state transition is recorded to a fleet trace. Any historical trace can be re-driven through the binary deterministically, same inputs same outputs, to reproduce incidents and validate fixes before they ship to the floor.
- Audit surface - every endpoint emits a structured audit log: who, what, when, why (the originating order or operator), and the resulting state delta. The trail is queryable, retention-managed, and exportable for safety-case reviews.
07
What's actually compiled into the binary.
Every layer below traces back to a real source path, a real test count, or a real architectural decision record. No aspirational names. What isn't built yet sits in the Roadmap section.
- Sim Backend - Gazebo Fortress, simulated multi-vendor LiDAR. Gazebo Fortress hosts the warehouse, the physics, and the robots. Ten production-vendor SDF models ship today: Clearpath (Jackal, Ridgeback, Dingo), Robotis (TurtleBot 3, TurtleBot 4), Husarion (ROSbot 2 PRO, ROSbot XL), Neobotix (MP-400, MPO-500), and Robotnik (Summit XL). Each robot SDF carries the vendor's actual LiDAR geometry - SICK 270°/20m on the Jackal, Hokuyo 360°/12m on the Dingo, dual SICK 270°/30m on the MPO-500 - so the sim's perception matches the real chassis it shadows.
- Fleet Core - C++17 fleet_core, ~12,287 LOC, running the FleetManager orchestration loop at 15 Hz. A single compiled binary runs the FleetManager, A* pathfinder + Dijkstra, NodeReservation (ILP-coupled), QuadTree spatial index, MotionController (P-controller), BatteryModel, ObstacleHandler, BTCPP v4 behaviour engine, TCP server, REST server, and a native mongocxx driver - 15-38ms per cycle across nine phases, hardened with UAF prevention, per-robot async-write mutexes, NaN guards, and bounded reads against malicious framing.
- Planner - MAPF with a dual solver. CBS (Conflict-Based Search) returns the optimal joint plan but goes exponential beyond 200 agents; PIBT (Push-and-Increment-Based Tree) runs in linear time and handles 500+ agents at the cost of optimality. Operators pick speed or optimality per use case via /api/mapf/step, the same endpoint that feeds the 15 Hz fleet cycle, the congestion heatmap, and the bottleneck-node KPI.
- TCP Protocol - ProtocolV1, newline-delimited frames on port 65123: 33 fields plus a CRC32 checksum, bidirectional at 15 Hz (telemetry up, commands down). Exercised today against the Gazebo backend and an internal multi-robot load harness; no live warehouse fleet on the wire yet. Asio coroutines handle 10,000+ concurrent connections on 4 threads; the 64KB max-frame guard came from a real DoS scenario found in audit.
- Message Bus - VDA5050-aligned MQTT 5.0 over Eclipse Mosquitto 2. All six VDA5050 message types are implemented (order, instantAction, factsheet, state, visualization, connection) with a 4-state lifecycle machine. 98 conformance tests cover the message surface and lifecycle, verified across three independent audit passes. MQTT auth uses SCRAM-SHA-256; the broker rejects unauthenticated publishers.
- Behaviour Engine - BTCPP v4, ~700 LOC of C++, one tree per robot ticking every 15 Hz cycle alongside the planner. Trees compose recursively from leaf actions (move, dock, charge, pick, hand-off) and control nodes (sequence, fallback, parallel). A recursion guard catches runaway trees, and a tree that blows its cycle budget gets pre-empted rather than allowed to starve the rest of the fleet.
- ASRS + Pick Station - four ASRS types (unit-load, mini-load, AutoStore, carousel) with crane and shuttle controllers, plus goods-to-person picking: 10 endpoints, 138 tests, three concurrent stations, three optimiser algorithms (nearest_sku, FIFO, priority). ASRS-AMR handoff runs on an explicit formula, AMR_dispatch = ASRS_ETA - AMR_travel - buffer, so the AMR arrives just-in-time; load runs reached 450+ picks/hour.
- Backend - FastAPI 0.100+ on Python 3.11 with Pydantic V2 contracts throughout: 213 endpoints across fleet, tasks, WES, WCS, WMS, inventory, MAPF, VDA5050, ASRS, pick stations, teleop, replay, and the saas_platform (auth, billing, reports), backed by motor (async MongoDB), redis, influxdb-client, aiomqtt, and pika (RabbitMQ). Rate limiting is Redis-backed, audit logging carries correlation IDs through every layer, Stripe webhooks use timestamp tolerance plus event-ID dedup, and token rotation revokes refresh tokens on use.
- Dashboard - React 19.1 + Vite + Tailwind CSS + Zustand 5, with Three.js (0.183) via @react-three/fiber and @react-three/drei rendering the live fleet, ASRS racks, pick stations, and the MAPF congestion heatmap. WebSocket transport carries MessagePack-encoded payloads with delta compression. JWT auth lives in the first WebSocket message rather than the URL, CSP headers are locked down, and the frontend serves from Docker after npm ci against a strict lockfile.
- Verification - 199 test files, 2,400+ tests: 152 Python, 24 C++ GTest, 9 Playwright specs, 14 Vitest suites. At the time of writing, 17/17 E2E API tests and 20/20 cross-vector audit tests were passing, gated by a three-auditor LLM verification pass before release. Six multi-user load tests cover port isolation, concurrent auth, and path traversal; an internal 50-robot load run completed against the simulator backend - no paying customer fleet yet.
08
What ships next.
The architecture leaves room for the next milestones on purpose. Each item below is named, scoped, and traceable to a decision in the strategic product roadmap - not aspiration, planned work.
- Real-fleet noise harvesting back into Gazebo - today the simulated LiDAR uses Gazebo's default noise model on vendor-accurate geometry; the next step harvests live noise distributions from the physical fleet and folds them into the SDF sensor models so sim-trained behaviours degrade gracefully under real-world perception artefacts.
- BIM / IFC pipeline - current warehouse imports come through ezdxf (DXF/CAD); the roadmap is a Revit IFC pipeline so the sim floor matches the real floor down to rack-frame tolerances without a manual conversion step.
- EKF primary fusion + ENU canonicalisation - AMCL is wired in as a confidence fallback today and graph matching is primary; promoting an EKF that fuses wheel odometry, IMU, and LiDAR-AMCL corrections into a single ENU-normalised pose is the next localisation milestone.
- Hash-chained tamper-evident traces - the ReplayEngine already queries InfluxDB time-series via /api/replay/sessions, /snapshot, /timeline; the next iteration adds SHA-256 hash-chained binary traces so a recorded session can be replayed deterministically and proven untampered for safety-case reviews.
- Idempotency keys on every state-mutating endpoint - idempotent allocation, release, and reuse already exist on the resource layer; extending idempotency keys to every state-mutating endpoint and webhook callback is the planned hardening pass.
- OPC UA, ISO 3691-4, MPC trajectories - an OPC UA bridge for industrial control integration, ISO 3691-4 conformance documentation, and replacing the P-controller MotionController with an MPC-based trajectory optimiser are tracked on the strategic roadmap.
- Full offline mode on the C++ FMS - when the cloud link drops, the Fleet Core keeps orchestrating locally; the roadmap closes the remaining gaps in local WES order-state persistence, deferred replication, and reconciliation on reconnect.
- Natural-language warehouse design + ops queries - a planned LLM layer that turns plain-language briefs ("add 12 mecanum AGVs, 4 pick stations, 80 racks") into a fully simulated warehouse, and lets operators ask "why is bay 7 congested?" against the live MAPF + InfluxDB telemetry.
Have a problem shaped like this one?
Tell us the workflow and the outcome you need. A clear yes, a clear no, or a sharper question — within 48 hours.