Optimal Motion Planning for Two Square Robots in a Rectilinear Environment
Abstract
Let be a rectilinear polygonal environment (that is, a rectilinear polygon potentially with holes) with a total of vertices, and let be two robots, each modeled as an axis-aligned unit square, that can move rectilinearly inside . The goal is to compute a collision-free motion plan , that is, a motion plan that continuously moves from to and from to so that and remain inside 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 , 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 -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.
Cite
@article{arxiv.2601.19147,
title = {Optimal Motion Planning for Two Square Robots in a Rectilinear Environment},
author = {Pankaj K. Agarwal and Mark de Berg and Benjamin Holmgren and Alex Steiger and Martijn Struijs},
journal= {arXiv preprint arXiv:2601.19147},
year = {2026}
}