// signal · engineering note
The software stack that moves the boxes: orchestrating autonomous robots in logistics
Distribution centers run on fleet coordination layers, real-time dispatch systems, and sensor fusion—not just the robots themselves.
Walk into a modern distribution center and you'll see robots moving packages. But the robots aren't the system—they're the periphery. The real work happens in the software layers that orchestrate every move: the fleet coordinator deciding which robot handles which task, the path planner avoiding collisions, the sensor fusion stack making sense of the warehouse floor, and the dispatch engine that translates incoming orders into actionable instructions.
Most engineers new to logistics automation assume the problem is mechanical—build a faster robot, add better wheels, improve the gripper. That's backwards. A warehouse full of uncoordinated robots is a warehouse full of deadlock. The software has to solve what looks like a continuous version of the traveling salesman problem, except there are dozens of agents moving simultaneously, and you have about 50 milliseconds to recompute when someone crashes.
Fleet Coordination: The Dispatcher at the Center
At the heart of any robot-driven warehouse is a fleet coordinator. This is the system that receives a goal—"move pallet 47 from zone A to zone B"—and decides which robot should do it. The coordinator maintains real-time state: where each robot is, what it's carrying, its battery level, its current task, and estimated time to task completion.
The naive approach is greedy assignment: send the nearest idle robot. This works until you have 20 robots, at which point you create deadlock, inefficient paths, and collisions. Real fleet coordinators use something closer to auction-based or graph-based assignment, where the system considers not just current position but future state. For example, a team deploying robots might find that assigning the nearest robot creates a bottleneck at a narrow corridor; a slightly more distant robot that arrives from a different angle is actually faster when you account for congestion.
The coordinator also has to balance operational constraints. Battery capacity matters—a robot at 15% charge shouldn't be assigned a task that burns 20%. Task priority and time windows matter. Some orders have hard delivery deadlines. The system has to avoid starvation, where a low-priority task never gets assigned because higher-priority work keeps arriving. This is typically solved with a priority queue and a "fairness" term in the assignment cost function.
Path Planning and Collision Avoidance
Once a robot is assigned a task, it needs a path. Static path planning—compute the shortest route once—fails immediately in a dynamic environment. Other robots are moving. Obstacles appear. Humans walk through the warehouse.
Modern systems use receding-horizon planning: compute a path 10–20 seconds ahead, execute it, then recompute. The planner typically uses a probabilistic roadmap or a grid-based approach (A* or D*). The key constraint is computation budget. You might have 50 robots, each needing a path update every 2 seconds. That's a lot of planning calls.
Collision avoidance happens at two levels. Global collision avoidance is handled by the fleet coordinator—it tries to assign non-conflicting tasks upfront. Local collision avoidance is handled by each robot: if two robots are on a collision course, the robot's local controller should detect it and stop or veer. This requires up-to-date occupancy grids, which come from the robot's sensors and sometimes from a central system that fuses data from many robots.
Sensor Fusion and Situational Awareness
Each robot carries sensors: lidar, cameras, IMU, wheel encoders. These sensors are noisy. The lidar might miss a small box. The camera might misidentify an object. Dead reckoning from wheel encoders drifts. Sensor fusion solves this by combining multiple noisy sources into a best-guess state.
At the per-robot level, sensor fusion is usually an extended Kalman filter or a particle filter that estimates position, velocity, and detected obstacles. At the fleet level, a central system might aggregate data from multiple robots to build a shared occupancy map. This map helps with global path planning and allows the coordinator to route around detected congestion.
The challenge is latency and consistency. If the central occupancy map lags by 5 seconds, it's nearly useless—robots move fast enough that the map becomes stale. Worse, if two robots run different versions of the map (one based on old sensor data, one on new), they might both plan paths through the same corridor, creating a collision that neither local controller can avoid.
Dispatch and Task Execution
Above fleet coordination sits the dispatch engine. This system ingests incoming orders and breaks them into atomic tasks: "pick item X", "place item X on pallet Y", "move pallet Y to staging zone Z". Each task has preconditions (the item must be in location X) and postconditions (the item is now in location Y).
The dispatch engine has to handle failures. If a robot breaks down mid-task, that task has to be reassigned. If a pick fails—the gripper can't grab the item—the system has to retry or escalate to a human. It also has to handle priorities: if a high-value order arrives, can the system preempt in-progress work to service it?
Much of this is orchestrated via message queues or event streams. A task transitions through states (assigned, in-progress, completed, failed). The coordinator watches these state transitions and makes decisions. If a task goes to "failed" and exceeds retry threshold, it escalates.
Common Pitfalls
Engineers building these systems often stumble on a few points. First, underestimating latency. If the central coordinator runs every 500ms and each update takes 100ms, your effective control loop is slower than you think. Second, not accounting for sensor uncertainty. A robot "sees" an obstacle that isn't there, so the fleet coordinator routes around it, reducing throughput. Third, trying to optimize for the wrong metric. Minimizing average path length is different from minimizing maximum task completion time, which is different from maximizing throughput. Pick the right one for your business.
The Takeaway
The robots you see in the warehouse are executing instructions written by software you don't see. That software—the coordinator, the planner, the dispatcher, the sensor fusion layer—is where the complexity lives. It's also where most of the value lives. Fast robots aren't useful if they're coordinating poorly. Shipping this kind of system means shipping not just hardware but a full stack of real-time control, planning, and coordination software. The robots are just the visible part.