Optimal Motion Planning for Two Square Robots in a Rectilinear Environment
Pankaj K. Agarwal, Mark de Berg, Benjamin Holmgren, Alex Steiger, Martijn Struijs
TL;DR
This work addresses two-robot motion planning for axis-aligned unit-square robots in rectilinear environments, formalizing a 4D configuration space and two optimization goals: Min-Sum and Min-Makespan. It proves that the Min-Sum problem admits a polynomial-time exact algorithm by showing an optimal plan can be restricted to a canonical-grid on an $O(n)\\times O(n)$ grid, then embedding this grid into a 4D configuration graph of size $O(n^4)$ and solving via Dijkstra in $O(n^4\\log n)$. Conversely, it establishes NP-hardness for Min-Makespan through a partition-based reduction, highlighting a sharp complexity boundary. The approach hinges on structural concepts like influence regions, corridors, and a surgery framework that transforms any optimal plan into a canonical-grid plan without increasing cost, yielding the first polynomial-time exact algorithm for two translating unit-square robots in a planar polygonal environment. The results have theoretical significance for multi-robot planning and potential practical impact in domains requiring provable optimality guarantees for small robot teams in structured environments.
Abstract
Let $\mathcal{W} \subset \mathbb{R}^2$ be a rectilinear polygonal environment (that is, a rectilinear polygon potentially with holes) with a total of $n$ vertices, and let $A,B$ be two robots, each modeled as an axis-aligned unit square, that can move rectilinearly inside $\mathcal{W}$. The goal is to compute a collision-free motion plan $\boldsymbolπ$, that is, a motion plan that continuously moves $A$ from $s_A$ to $t_A$ and $B$ from $s_B$ to $t_B$ so that $A$ and $B$ remain inside $\mathcal{W}$ and do not collide with each other during the motion. We study two variants of this problem which are focused additionally on the optimality of $\boldsymbolπ$, and obtain the following results. 1. Min-Sum: Here the goal is to compute a motion plan that minimizes the sum of the lengths of the paths of the robots. We present an $O(n^4\log{n})$-time algorithm for computing an optimal solution to the min-sum problem. This is the first polynomial-time algorithm to compute an optimal, collision-free motion of two robots amid obstacles in a planar polygonal environment. 2. Min-Makespan: Here the robots can move with at most unit speed, and the goal is to compute a motion plan that minimizes the maximum time taken by a robot to reach its target location. We prove that the min-makespan variant is NP-hard.
