# 单元分解

**单元分解**是一类运动规划方法，它将机器人的自由空间划分为有限个称为单元的简单区域，构建一个以单元为顶点、以相邻单元之间的连接为边的图，并通过在该图上搜索来寻找路径。由于连续无限的可行路径被替换为有限图，一旦分解完成，规划就简化为一个离散搜索问题<sup>[1](https://msl.cs.uiuc.edu/~lavalle/planning/node262.html)</sup><sup> • </sup><sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 核心步骤 | 将自由空间划分为单元，构建相邻单元的连通图，定位起点和目标所在的单元，搜索该图，然后计算穿过单元序列的轨迹<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup> |
| 两大类别 | 精确分解——每个单元要么完全自由要么完全被占据；近似分解——忽略障碍物几何形状，使用预定义形状<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup> |
| 梯形法 | 从每个障碍物顶点引出垂直边，将平面自由空间切割为梯形和三角形；扫描线算法可在 \( O(n \log n) \) 时间内对 n 个顶点完成构建<sup>[3](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup> |
| 保证 | 精确分解是完备的：若存在自由路径，则一定能找到；然而单元序列可能错过真正的最短路径<sup>[3](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup> |
| 一般情形 | 柱形代数分解可求解任意运动规划问题，该问题具有 k 个自由度，由 n 个最高次数为 d 的多项式定义，随机期望时间为 \( O((nd)^{3k}) \)<sup>[4](https://www.csun.edu/~ctoth/Handbook/chap50.pdf)</sup> |
| 覆盖应用 | 牛耕式单元分解以来回运动覆盖每个单元，可证明对于覆盖任务是完备的<sup>[5](https://publications.ri.cmu.edu/coverage-path-planning-the-boustrophedon-decomposition)</sup> |

## 方法原理

要使归约为图搜索有效，单元分解必须满足三个性质：计算单个单元内两点之间的路径必须非常简单（凸单元允许直线连接）；邻接信息必须易于提取以构建路线图；确定起点和目标构型所在单元必须高效<sup>[1](https://msl.cs.uiuc.edu/~lavalle/planning/node262.html)</sup>。当这些条件满足时，运动规划问题就变成了普通的图搜索，区别在于整个图通常是预先已知的<sup>[1](https://msl.cs.uiuc.edu/~lavalle/planning/node262.html)</sup>。

基本假设是机器人在单元内的精确位置无关紧要；重要的是哪些自由单元可以通行到相邻的自由单元<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>。搜索输出是一个单元序列，有时称为通道，随后被转换为具体轨迹，例如通过穿越每个共享边界的中心点，或在每个单元内沿直线运动<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>。

## 精确分解

**精确方法**将单元边界放置在几何关键点处，通常是障碍物的顶点<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>。每个单元要么完全自由要么完全被占据，因此自由单元的并集恰好等于自由空间，这正是该方法完备的原因<sup>[6](https://cs.stanford.edu/people/eroberts/courses/soco/projects/robotics/basicmotion.html)</sup>。

梯形分解是最简单的精确方法之一。想象从每个障碍物顶点引出垂直的上下边，将自由空间切割为梯形和三角形，其中三角形是有一条边长度为零的退化梯形。共享垂直边界的单元在图中通过一条边相连。由于每个单元是凸的，连接其左右边的任意直线都位于自由空间内<sup>[3](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup>。

构建使用扫描线算法：一条垂直线从左到右在顶点之间穿过，逐步输出单元。障碍物顶点按字典序排序，先按 x 坐标，x 坐标相同则按 y 坐标。排序需要 \( O(n \log n) \) 时间；随后扫描对 n 个点中的每一个执行继续、分割或合并操作，使用 \( O(\log n) \) 的二分查找定位包含新点的区间，更新和单元创建为 \( O(1) \)，总体运行时间为 \( O(n \log n) \)<sup>[3](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup>。

要回答查询，算法找到包含起点和目标的单元，搜索连接二者的单元序列，并通过连接单元中点构建连续路径。每一段都位于凸单元内，因此路径保证可行。该方法因此是完备的但非最优的：在单元序列内拉直路径可以缩短它，但单元序列本身可能错过真正的最短路径<sup>[3](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup>。

一个实际的优点和缺点来自同一根源：单元数量取决于障碍物的密度和复杂度，而非环境的大小。空旷的大厅几乎不花代价，而杂乱的、非多边形的环境则变得昂贵且难以分解<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>。

精确方法已扩展到具有多面体障碍物的三维空间，但通常需要对自由空间如何被切割为凸多面体进行复杂的几何推理<sup>[3](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)</sup>。

## 近似分解

**近似方法**忽略障碍物几何形状，递归地细分固定区域。在四叉树方法中，覆盖环境的矩形被切割为四个相同的小矩形；完全位于自由空间或完全位于障碍物内部的矩形保持不变，混合矩形再次细分，直到给定的最小单元尺寸为止<sup>[2](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)</sup>。单元具有预定义的形状，其并集严格包含于自由空间内，单元边界不具有物理意义；此类方法是分辨率完备的而非完备的<sup>[6](https://cs.stanford.edu/people/eroberts/courses/soco/projects/robotics/basicmotion.html)</sup>。

## 柱形代数分解

对于接触面以代数方式描述的问题，通用工具是**柱形代数分解**（CAD），由威斯康星大学数学家乔治·E·柯林斯（George E. Collins）于1975年提出，作为实闭域量词消去过程的一部分<sup>[7](https://epubs.siam.org/doi/abs/10.1137/0213054?journalCode=smjcat)</sup>。该方法将构型空间分解为满足多项式不变性条件和坐标投影柱形性的单元，这将其与三角剖分、网格生成或立方体细分区分开来。

《离散与计算几何手册》给出了通用结果：任何具有 k 个自由度的运动规划问题，其接触面由 n 个最高次数为 d 的多项式定义，都可以通过柯林斯的柱形单元分解在随机期望时间 \( O((nd)^{3k}) \) 内求解，随机化仅用于为坐标轴选择一般方向<sup>[4](https://www.csun.edu/~ctoth/Handbook/chap50.pdf)</sup>。拉瓦勒的《规划算法》同样报告，运行时间关于多项式数量及其最高代数次数是多项式的，关于维度是双指数的<sup>[8](https://msl.cs.uiuc.edu/~lavalle/planning/node297.html)</sup>。形成的路线图中，每个顶点是一个 n-单元，边通过 (n−1)-单元连接相邻的 n-单元；柱体内部的邻接关系容易确定，但确定不同柱体的单元之间的邻接关系涉及技术细节<sup>[8](https://msl.cs.uiuc.edu/~lavalle/planning/node297.html)</sup>。

这种双指数代价是精确单元分解的实际极限。该领域的综述指出，单元分解和可见性路线图等完备算法计算代价高且难以实现，这促使高维机器人的运动规划转向采用基于采样的规划器<sup>[9](https://www.sciencedirect.com/science/article/abs/pii/S1574013707000081)</sup>。2024年的一篇比较综述将基于采样的运动规划描述为在实际高维问题中取代精确方法的范式，而精确方法在完备性保证重要的低维构型空间中仍保留其作用<sup>[10](https://doi.org/10.1146/annurev-control-061623-094742)</sup>。

## 覆盖路径规划

单元分解也服务于覆盖任务，其目标是找到一条经过环境每一点的路径，如吸尘、擦地和检测。[卡内基梅隆大学](https://www.edgepedia.org/zh/carnegie-mellon-university)机器人学教授豪伊·乔塞特（Howie Choset）和菲利普·皮尼翁（Philippe Pignon）于1997年开发了牛耕式单元分解，这是一种精确单元分解，每个单元以简单的来回运动覆盖，因耕作模式而得名于希腊语中意为“牛的方式”的词。覆盖随后简化为在单元的邻接图中寻找一条穷举路径，他们证明了该方法的完备性并在移动机器人上进行了验证<sup>[5](https://publications.ri.cmu.edu/coverage-path-planning-the-boustrophedon-decomposition)</sup>。

综述指出了三种主要的精确覆盖算法：梯形分解，仅创建梯形单元，适用于平面的、多边形的、先验已知的空间；牛耕式分解，跨顶点合并单元为更大的非凸区域，与梯形方法相比可以减少单元数量和覆盖路径长度；以及基于莫尔斯理论的分解<sup>[11](https://www.researchgate.net/publication/376021432_Chaotic_Motion_Planning_for_Mobile_Robots_Progress_Challenges_and_Opportunities)</sup><sup> • </sup><sup>[12](https://doi.org/10.1145%2F3673896)</sup>。

## References

1. [Steven M. LaValle, Planning Algorithms, Section 6.2.2: Vertical Cell Decomposition](https://msl.cs.uiuc.edu/~lavalle/planning/node262.html)
2. [IEEE Robotics and Automation Society, RAS University: Introduction to Motion Planning](https://www.ieee-ras.org/ras-university/?ras_page=docs%2Fchap3_motion_planning%2Fintroduction.html)
3. [Kris Hauser, Robotic Systems: Geometric Motion Planning](https://motion.cs.illinois.edu/RoboticSystems/GeometricMotionPlanning.html)
4. [D. Halperin, O. Salzman, M. Sharir, "Algorithmic Motion Planning," Handbook of Discrete and Computational Geometry, Chapter 50](https://www.csun.edu/~ctoth/Handbook/chap50.pdf)
5. [Howie Choset and Philippe Pignon (1997), "Coverage Path Planning: The Boustrophedon Decomposition," FSR '97](https://publications.ri.cmu.edu/coverage-path-planning-the-boustrophedon-decomposition)
6. [Stanford CS: Robotics, Motion Planning notes](https://cs.stanford.edu/people/eroberts/courses/soco/projects/robotics/basicmotion.html)
7. [G. E. Collins, "Cylindrical Algebraic Decomposition I: The Basic Algorithm," SIAM Journal on Computing](https://epubs.siam.org/doi/abs/10.1137/0213054?journalCode=smjcat)
8. [Steven M. LaValle, Planning Algorithms, Section 6.4.2: Solving a motion planning problem](https://msl.cs.uiuc.edu/~lavalle/planning/node297.html)
9. [M. Elbanhawi, M. Simic (2014), "Sampling-based robot motion planning: Towards realistic applications"](https://www.sciencedirect.com/science/article/abs/pii/S1574013707000081)
10. [A. Orthey, C. Chamzas, L. E. Kavraki (2024), "Sampling-Based Motion Planning: A Comparative Review," Annual Review of Control, Robotics, and Autonomous Systems](https://doi.org/10.1146/annurev-control-061623-094742)
11. ["Chaotic Motion Planning for Mobile Robots: Progress, Challenges, and Opportunities"](https://www.researchgate.net/publication/376021432_Chaotic_Motion_Planning_for_Mobile_Robots_Progress_Challenges_and_Opportunities)
12. ["A survey of 3D Space Path-Planning Methods and Algorithms," ACM Computing Surveys](https://doi.org/10.1145%2F3673896)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Robot software, AI, and methods › Motion planning and collision detection

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/cell-decomposition

English original: https://www.edgepedia.org/cell-decomposition
