Initial plan: Space-Time A*
Before execution, robots plan one at a time in priority order. Each searches over states (x, y, t), where it can move to a neighbouring cell or wait.
The heuristic is the exact shortest distance on the static map, precomputed with BFS, so A* stays optimal.
Every finished plan is added to a reservation table of (cell, time) and (edge, time) slots, so later robots avoid both
vertex conflicts (two robots in one cell) and swap conflicts (two robots crossing). Each robot plans its whole task chain up front,
which gives a clear "original plan" to count changes against.
Robots as BDI agents
- Beliefs
- The map, its own position, blocked cells it has sensed, and its neighbours' plans.
- Desires
- Its remaining pickup-and-delivery tasks, then return to its dock.
- Intentions
- Its committed plan. It persists until a flaw makes it invalid, which is the key to changing few plans.
A reactive safety rule sits under the planner: never step into a cell that will be occupied, and never swap.