English

Optimal Motion Planning for Two Square Robots in a Rectilinear Environment

Computational Geometry 2026-01-28 v1

Abstract

Let WR2\mathcal{W} \subset \mathbb{R}^2 be a rectilinear polygonal environment (that is, a rectilinear polygon potentially with holes) with a total of nn vertices, and let A,BA,B be two robots, each modeled as an axis-aligned unit square, that can move rectilinearly inside W\mathcal{W}. The goal is to compute a collision-free motion plan π\boldsymbol{\pi}, that is, a motion plan that continuously moves AA from sAs_A to tAt_A and BB from sBs_B to tBt_B so that AA and BB remain inside W\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{\pi}, 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(n4logn)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.

Keywords

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}
}
R2 v1 2026-07-01T09:21:33.602Z