Algorithm Search⌘K

Problemcore

Coverage path planning

Also called complete coverage path planning.

Find a path that passes a tool over every point of a region, as for cleaning, mowing or demining.

Coverage path planning asks for a path along which a tool of a given shape, such as a cleaning brush, a mower deck, a spray nozzle, a camera footprint or a milling cutter, passes over every point of a given region. The region is a part of the plane, or a surface, minus its obstacles. A path that covers everything always exists when the free region is connected and the tool fits through every passage; the hard part is to make it short, with few turns and little overlap, and to plan it when the map is not known in advance. The robotics form of the problem is the same as the tool path problem of pocket milling in manufacturing and the lawn mowing problem of computational geometry. In general it is NP-hard, so practical planners split the region into simple cells and cover each cell with back and forth lanes.

In plain words

A cleaning robot must pass its brush over the whole floor of a room, around the furniture. It should not leave a strip uncleaned, it should not pass over the same place too often, and it should not waste time turning. Mowers, painting robots, mine detectors and survey drones have the same task with a different tool.

The question has two parts. First, which path passes over everything? Second, of those paths, which one is shortest or quickest? The first part is easy for most rooms. The second part is hard to answer exactly, so planners use simple patterns that are good, but not always the best.

Definition

Input. A closed region PP in the plane (often a polygon with holes), a tool shape TT (a disc of diameter ww, or an axis-aligned square of side ww), and the allowed motions (any path, or only axis-parallel segments). In the robot form, PP is the free part of the configuration space, so the obstacles are already grown by the robot's size.

Output. A path γ:[0,1]→R2\gamma : [0, 1] \to \mathbb{R}^2 such that every point of PP lies in the tool placed at some point of the path:

P⊆⋃t∈[0,1](γ(t)+T).P \subseteq \bigcup_{t \in [0, 1]} \bigl(\gamma(t) + T\bigr).

In the milling version, the tool must stay inside PP, that is γ(t)+T⊆P\gamma(t) + T \subseteq P for all tt. In the lawn mowing version, the tool may leave PP. These names come from Arkin, Fekete and Mitchell.

Objective. Minimize the length of γ\gamma. Common other costs are the time, which counts turns because the robot slows down to turn, the number of turns, and the area covered more than once. A closed path (a tour) is often required, so that the robot returns to its dock.

Variants

  • Offline and online. In the offline version, the map is known. In the online, or sensor-based, version, the robot builds the map as it covers. Choset's survey sorts methods along this line and by the kind of decomposition they use.
  • Grid coverage. The region is a set of grid cells of the tool's size, and the path must visit every cell. This is a traveling salesman problem on the cell centers, with the grid steps as the edges.
  • Several robots. The region is split among robots, and the objective is often the longest path of any robot. This is a different problem from coverage control, which places static sensors at good positions.
  • Coverage of surfaces and volumes. Inspection of a ship hull, painting of a car body and 3D printing cover a surface or a stack of layers.
  • Coverage with a sensor footprint. For survey drones and search, the "tool" is the footprint of a camera or sonar. When the sensor sees far, the task becomes next-best-view planning or the watchman route problem, where seeing a point is enough and the tool need not pass over it.

Examples

A rectangle with a square tool. Let PP be the rectangle [0,4]×[0,3][0, 4] \times [0, 3], let TT be an axis-aligned unit square, and let the tool move only along axis-parallel segments, in the milling version. The tool center must stay in [0.5,3.5]×[0.5,2.5][0.5, 3.5] \times [0.5, 2.5].

  • Vertical lanes at x=0.5,1.5,2.5,3.5x = 0.5, 1.5, 2.5, 3.5, each from y=0.5y = 0.5 to 2.52.5, joined at their ends, have length 4⋅2+3⋅1=114 \cdot 2 + 3 \cdot 1 = 11 and 6 turns.
  • Horizontal lanes at y=0.5,1.5,2.5y = 0.5, 1.5, 2.5, each from x=0.5x = 0.5 to 3.53.5, joined at their ends, have length 3⋅3+2⋅1=113 \cdot 3 + 2 \cdot 1 = 11 and 4 turns.

The lower bound in the next section gives L≥(12−1)/1=11L \ge (12 - 1)/1 = 11, so both paths are shortest. They differ in the number of turns, which is why practical planners sweep along the longer side.

A grid with no good path. Take the grid cells as unit squares and a unit square tool, and let the region be a 3×33 \times 3 block of cells. A closed tour through the 9 cell centers with unit steps would be a Hamiltonian cycle of the 3×33 \times 3 grid graph. The grid graph is bipartite with 5 cells of one color and 4 of the other, and a cycle alternates colors, so no such cycle exists. Every covering tour needs at least one diagonal step or one repeated cell.

Known algorithms

  • Boustrophedon cell decomposition (Choset and Pignon, 1998). It splits a known polygonal region into cells at the points where a sweep line changes its number of free intervals, and covers each cell with back and forth lanes. It is complete: it covers every point, given a tool that fits. It gives no bound on the length against the optimum.
  • The trapezoidal decomposition with back and forth lanes in each trapezoid. It is complete, with more cells and more turns than the boustrophedon decomposition.
  • Grid methods. Wavefront distance transforms and spanning-tree coverage on an occupancy grid. They are complete at the resolution of the grid and easy to run online.
  • Approximation algorithms. Arkin, Fekete and Mitchell give a (3+ε)(3 + \varepsilon)-approximation for lawn mowing and a 2.52.5-approximation for milling (theorem, in their model).
  • Tool path patterns from manufacturing: direction-parallel (zigzag) and contour-parallel (offset) paths; see pocket machining and toolpath planning.
  • Exploration first. When the map is unknown, frontier-based exploration builds a map, and an offline method then covers it. Sensor-based versions of the boustrophedon decomposition find the critical points while they cover.

Bounds

Theorem (a length lower bound). If a tool that is a disc of diameter ww covers a region of area AA along a path of length LL, then L≥(A−πw2/4)/wL \ge (A - \pi w^2/4)/w. For an axis-aligned square of side ww that moves only along axis-parallel segments, L≥(A−w2)/wL \ge (A - w^2)/w.

Proof. Let r=w/2r = w/2, and let p0,…,pNp_0, \dots, p_N be points on the path with ∑i∣pi+1−pi∣≤L\sum_i |p_{i+1} - p_i| \le L. A disc of radius rr moved by a vector δ\delta gains a new area of at most 2r∣δ∣2r |\delta|, since the new part lies in the strip that the disc's diameter sweeps across δ\delta. So the union of the discs at p0,…,pNp_0, \dots, p_N has area at most πr2+2rL\pi r^2 + 2rL. As the points become dense on the path, these unions increase to the whole swept set, which must contain PP. The square case is the same, with a new area of at most w∣δ∣w|\delta| for an axis-parallel δ\delta, and w2w^2 for the first square. □\square

The bound is tight for rectangles whose sides are multiples of ww, as the example shows. It ignores the turns and the obstacles, so on cluttered regions it is far from the best path.

Hardness. Both lawn mowing and milling are NP-hard, by Arkin, Fekete and Mitchell. Their Theorem 1 shows it for lawn mowing with an aligned unit square tool in a connected polygonal region, and the corollaries extend it to simple polygons and to milling of regions with holes (theorem). The grid version contains the Hamiltonian cycle problem in grid graphs: a covering tour of length equal to the number of cells exists if and only if the grid graph has a Hamiltonian cycle.

Reductions

  • To the traveling salesman problem. On a grid, a tour through all cell centers covers the region, so any TSP method gives a coverage path. The same holds for a set of lanes: ordering the lanes, or the cells of a decomposition, with a choice of the end at which each one starts, is a generalized TSP.
  • From Hamiltonian cycle in grid graphs. As in the Bounds section. This is the usual source of the NP-hardness of the grid version.
  • To set cover. Choosing a smallest set of tool positions whose union covers PP, ignoring the travel, is a geometric set cover problem.

Applications

Floor cleaning robots, lawn mowing, agriculture (seeding, spraying and harvesting along rows), humanitarian demining, aerial and underwater survey, ship hull inspection, spray painting, and the tool paths of pocket machining and of the infill of each layer in additive manufacturing. The survey of Galceran and Carreras lists these uses and the methods that each one uses.

References

  1. Enric Galceran and Marc Carreras, A survey on coverage path planning for robotics, Robotics and Autonomous Systems 61(12), pp. 1258-1276, the whole survey (the requirements of a coverage path and the classes of methods)
  2. Howie Choset, Coverage for robotics: a survey of recent results, Annals of Mathematics and Artificial Intelligence 31, pp. 113-126, the whole survey (heuristic, approximate and exact cellular decomposition methods, offline and online)
  3. Esther M. Arkin, Sándor P. Fekete and Joseph S. B. Mitchell, Approximation algorithms for lawn mowing and milling, Computational Geometry 17(1-2), pp. 25-50, the abstract (both problems are NP-hard; a (3 + ε)-approximation for lawn mowing and a 2.5-approximation for milling), Theorem 1 and its corollaries

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml