# 路径规划算法

路径规划算法为机器人或智能体计算一条从起始位置到目标位置的无碰撞路线。在标准表述中，输出是一条连续路径 \( \tau: [0,1] \rightarrow C_{\mathrm{free}} \)，满足 \( \tau(0) = q_I \) 且 \( \tau(1) = q_G \)，其中 \( C_{\mathrm{free}} \) 是机器人不与任何障碍物重叠的构型集合。<sup>[1](https://lavalle.pl/papers/Lav11b.pdf)</sup> 近年来的神经规划器输出下一步关节运动的分布，再从中采样生成路径。<sup>[2](https://doi.org/10.48550/arxiv.2409.05864)</sup> 存在两大流派：组合规划，在构型空间（机器人各部件所有可能位置的集合）中构造离散的完备结构；以及[基于采样的规划](https://www.edgepedia.org/zh/sampling-based-planning)，利用碰撞检测来探测并增量式搜索构型空间；基于采样的方法是工业级问题中最常见的选择。<sup>[1](https://lavalle.pl/papers/Lav11b.pdf)</sup>

| 关键事实 | 数值 | 来源 |
|---|---|---|
| 基本问题的输出 | 从 \( q_I \) 到 \( q_G \) 的连续路径 \( \tau: [0,1] \rightarrow C_{\mathrm{free}} \) | <sup>[1](https://lavalle.pl/papers/Lav11b.pdf)</sup> |
| A*评价函数 | \( f(n) = g(n) + h(n) \)；可采纳的 \( h \) 永不高估剩余代价 | <sup>[3](https://underactuated.csail.mit.edu/planning.html)</sup><sup> • </sup><sup>[4](https://doi.org/10.1109/tssc.1968.300136)</sup> |
| 基于采样规划器的保证 | 概率完备；RRT* 额外具有渐近最优性 | <sup>[5](https://ar5iv.labs.arxiv.org/html/1105.1186)</sup><sup> • </sup><sup>[6](https://ttic.edu/ripl/assets/publications/karaman11.pdf)</sup> |
| 计算复杂性 | 即使在 \( \mathbb{R}^2 \) 中多个平移轴对齐矩形的情形下也是 PSPACE-难的 | <sup>[7](https://www.clear.rice.edu/comp450/papers/chapter_kav_lav.pdf)</sup> |
| 主要运行时开销 | 碰撞检测，占执行时间高达 90% | <sup>[8](https://eng.libretexts.org/Bookshelves/Mechanical_Engineering/Introduction_to_Autonomous_Robots_%28Correll%29/04%3A_Path_Planning/4.03%3A_Sampling-based_Path_Planning)</sup> |
| 重规划加速 | D* Lite 比用 A* 从头重规划快达两个数量级 | <sup>[9](https://www.cs.cmu.edu/%7emaxim/files/hsplanguide_icaps05ws.pdf)</sup> |

## 工作原理

**图搜索**在离散图上进行规划。A* 按 \( f(n) = g(n) + h(n) \) 排序扩展，其中 \( g(n) \) 是迄今找到的从起点出发的最低代价，\( h(n) \) 估计到目标的剩余代价。<sup>[4](https://doi.org/10.1109/tssc.1968.300136)</sup> 若启发式永不高估剩余代价，则称其为可采纳的；使用可采纳启发式时 A* 是完备且最优的，而 [Dijkstra 算法](https://www.edgepedia.org/zh/dijkstras-algorithm)是 \( h(n) = 0 \) 的特例。<sup>[3](https://underactuated.csail.mit.edu/planning.html)</sup><sup> • </sup><sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup> A* 在其搜索的离散图上返回最优路径，但该图路径只能以网格分辨率近似连续空间的最优解，且运行时间随状态空间维度指数增长。<sup>[5](https://ar5iv.labs.arxiv.org/html/1105.1186)</sup>

**基于采样的规划**通过碰撞检测模块探测 \( C_{\mathrm{free}} \)，从而避免显式的障碍物表示。这类规划器是概率完备的，即找到已有解的概率趋于一，但基本 RRT 以概率一收敛到次优解。<sup>[5](https://ar5iv.labs.arxiv.org/html/1105.1186)</sup> 塞尔塔奇·卡拉曼和埃米利奥·弗拉佐利证明了这种收敛到最优解的概率为零，并提出 RRT*，它在保留概率完备性的同时几乎必然收敛到最优解。<sup>[6](https://ttic.edu/ripl/assets/publications/karaman11.pdf)</sup>

**势场法**构造一个可微函数 \( U(q) \)，包含朝向目标的吸引分量和远离障碍物的排斥分量，然后应用梯度下降。由于梯度下降只能到达局部极小值，这不能保证找到解。<sup>[7](https://www.clear.rice.edu/comp450/papers/chapter_kav_lav.pdf)</sup>

## 具体做法

实践者首先定义构型空间并计算 \( C_{\mathrm{free}} = \{ q \in C \mid A(q) \cap O = \emptyset \} \)，然后选择规划器族。<sup>[1](https://lavalle.pl/papers/Lav11b.pdf)</sup> 对于 A*，开放列表是优先队列，封闭列表是哈希集合；开销最大的操作是封闭列表的插入与查找以及提取最小 \( f \) 元素。<sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup> 循环取出最小 \( \hat{f}(n) \) 的节点，生成后继节点，并在代价改善时更新 \( g(n') = g(n) + c(n, n') \)。<sup>[11](https://www.aorthey.com/assets/lectures/motion-planning/03_lecture.pdf)</sup>

对于 PRM，预处理阶段采样约 1000 个随机无碰撞构型并将邻近构型连接成路线图；查询阶段则连接起点和目标并用 A* 搜索。<sup>[12](https://www.cs.cmu.edu/~motionplanning/papers/sbp_papers/PRM/prmbasic_01.pdf)</sup><sup> • </sup><sup>[3](https://underactuated.csail.mit.edu/planning.html)</sup> 单查询规划器如 RRT 遵循一个模板：初始化搜索图，选择一个顶点，运行局部规划器生成经过碰撞检测的线段，插入边，并检查是否找到解。<sup>[13](https://msl.cs.uiuc.edu/~lavalle/planning/node219.html)</sup> RRT 在整个 \( C \) 中而非仅在 \( C_{\mathrm{free}} \) 中采样 \( q_{\mathrm{rand}} \)，并将最近的树点朝其方向扩展。<sup>[1](https://lavalle.pl/papers/Lav11b.pdf)</sup> 由于碰撞检测消耗高达 90% 的运行时，惰性碰撞评估先找到候选路径再对其各段进行检测。<sup>[8](https://eng.libretexts.org/Bookshelves/Mechanical_Engineering/Introduction_to_Autonomous_Robots_%28Correll%29/04%3A_Path_Planning/4.03%3A_Sampling-based_Path_Planning)</sup> 最终路径的锯齿通过用 \( C_{\mathrm{free}} \) 中的直线段替换来平滑。<sup>[1](https://lavalle.pl/papers/Lav11b.pdf)</sup>

## 起源

A* 由 彼得·哈特、尼尔斯·尼尔森和伯特伦·拉斐尔 于 1968 年在《IEEE 系统科学与控制论汇刊》上提出。<sup>[4](https://doi.org/10.1109/tssc.1968.300136)</sup> RRT 由 史蒂文·拉瓦莱 于 1998 年提出。<sup>[14](https://lavalle.pl/papers/Lav02.pdf)</sup> RRT*、PRM* 和 RRG 由 塞尔塔奇·卡拉曼和埃米利奥·弗拉佐利 于 2011 年在《国际机器人研究杂志》上提出。<sup>[15](https://doi.org/10.1177/0278364911406761)</sup> D* 算法由 安东尼·斯坦茨 于 1994 年提出，用于弧代价变化的图中最优遍历的实时重规划。<sup>[16](https://publications.ri.cmu.edu/storage/publications/pub_files/pub3/stentz_anthony__tony__1994_2/stentz_anthony__tony__1994_2.pdf)</sup> D* Lite 归功于 斯文·柯尼希和马克西姆·利哈乔夫，2002 年发表。<sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup><sup> • </sup><sup>[17](http://www.cs.toronto.edu/~jabaier/publications/HernandezBA14.pdf)</sup> Theta* 由 肯尼·丹尼尔 及其同事于 2007 年提出。<sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup> Informed RRT* 由 乔纳森·甘梅尔、悉达多·斯里尼瓦萨和蒂莫西·巴富特 于 2014 年在 arXiv 上提出。<sup>[18](https://doi.org/10.48550/arxiv.1404.2334)</sup> BIT* 由同三位作者于 2014 年在 arXiv 上提出。<sup>[19](https://personalrobotics.cs.washington.edu/publications/gammell2015bitstar.pdf)</sup> FMT* 由 卢卡斯·詹森 及其同事于 2015 年在《国际机器人研究杂志》上提出。<sup>[20](https://doi.org/10.1177/0278364915577958)</sup> CHOMP 由 马特·朱克 及其同事于 2013 年在《国际机器人研究杂志》上提出。<sup>[21](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-csr.2018.0003)</sup> MI-RRT* 由 马尔科·法罗尼、尼古拉·佩德罗基和曼努埃尔·贝斯基 于 2024 年在《[自主机器人](https://www.edgepedia.org/zh/autonomous-robots)》上提出。<sup>[22](https://doi.org/10.1007/s10514-024-10157-5)</sup> Neural MP 由 穆尔塔扎·达拉尔 及其同事于 2024 年在 arXiv 上提出。<sup>[2](https://doi.org/10.48550/arxiv.2409.05864)</sup>

## 变体

**Informed RRT*** 保留了 RRT* 的概率完备性和渐近最优性，但在找到第一个解之后，直接采样可能改进该解的长椭球超球面子集，从而提高收敛速度和最终解的质量。<sup>[23](https://robotic-esp.com/papers/gammell_iros14)</sup><sup> • </sup><sup>[18](https://doi.org/10.48550/arxiv.1404.2334)</sup> **BIT*** 按潜在解质量顺序搜索一系列逐渐加密的隐式随机几何图，从而统一了基于图和基于采样的规划。<sup>[24](https://robotic-esp.com/papers/gammell_ijrr20)</sup><sup> • </sup><sup>[19](https://personalrobotics.cs.washington.edu/publications/gammell2015bitstar.pdf)</sup> FMT* 本身是一种用于多维最优规划的快速行进采样方法。<sup>[20](https://doi.org/10.1177/0278364915577958)</sup>

**D* Lite** 从目标向起点搜索，维护每个节点的 \( g \) 和 \( rhs \) 估计（目标处 \( rhs(s) = 0 \)，其余为后继节点的一步前瞻最小值），并在弧代价变化时仅修复受影响的代价；AD* 将这种增量重规划与 ARA* 的随时搜索（膨胀系数逐步递减）相结合。<sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup><sup> • </sup><sup>[9](https://www.cs.cmu.edu/%7emaxim/files/hsplanguide_icaps05ws.pdf)</sup> **Theta*** 利用视线检查将 A* 扩展到网格上的任意角度路径。<sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup> **MI-RRT*** 将可采纳的知情采样与当前解附近的局部采样混合，在已报告的实验中相比 Informed RRT* 减少规划时间达 34%。<sup>[22](https://doi.org/10.1007/s10514-024-10157-5)</sup>

## 应用

PRM 已应用于已知静态环境中 3 至 16 自由度的机器人，在几十秒预处理后能在不到一秒内为 10 自由度机器人找到路径。<sup>[25](https://www.kavrakilab.org/publications/kavraki-latombe1998probabilistic-roadmaps-for.pdf)</sup> Informed RRT* 在 HERB——一个 14 自由度移动操作平台上进行了评估。<sup>[26](https://www.robots.ox.ac.uk/~mobile/Papers/2018TRO_gammell.pdf)</sup> D* 系列重规划器已搭载于[火星车](https://www.edgepedia.org/zh/mars-rover)上运行，并参与了 DARPA 城市挑战赛。<sup>[17](http://www.cs.toronto.edu/~jabaier/publications/HernandezBA14.pdf)</sup><sup> • </sup><sup>[10](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)</sup> 在已发表的比较中，RRT 在 PRM、RRT 和 沃罗诺伊图路线图方法中最快，适合时间关键的移动机器人和无人机，但路径与障碍物的安全距离最差。<sup>[27](https://www.cambridge.org/core/journals/robotica/article/comparative-analysis-of-popular-mobile-robot-roadmap-pathplanning-methods/95651415E38A60AA4BB71C90F31D576F)</sup> BIT* 在随机世界和 HERB 操作问题上始终优于 RRT*、Informed RRT* 和 FMT*。<sup>[19](https://personalrobotics.cs.washington.edu/publications/gammell2015bitstar.pdf)</sup>

## 局限与替代方案

每个流派都有其典型的失败方式。势场法使机器人陷入局部极小值、在障碍物附近振荡，且是为静态环境设计的。<sup>[28](https://www.nature.com/articles/s41598-025-96614-2)</sup> 狭窄通道是测度接近零的瓶颈，因此基于采样的规划器很少采样到它们；在一项实证研究中，测试的全部六种随时规划器在 5 维及以上带狭窄通道的问题上都不可靠，而网格搜索随维度增长急剧退化。<sup>[29](https://www.annualreviews.org/content/journals/10.1146/annurev-control-061623-094742)</sup><sup> • </sup><sup>[30](https://motion.cs.illinois.edu/papers/IROS2014-OptimalBenchmarking.pdf)</sup> 基于采样的规划器还对步长、偏置百分比和 k 近邻参数等实现细节高度敏感。<sup>[31](https://ieeexplore.ieee.org/document/6722915)</sup> 对于变化的弧代价，D* 仅修复受影响的那部分路径，远比暴力重规划高效，在大型环境中加速因子接近 300。<sup>[16](https://publications.ri.cmu.edu/storage/publications/pub_files/pub3/stentz_anthony__tony__1994_2/stentz_anthony__tony__1994_2.pdf)</sup>

**轨迹优化**是最接近的替代流派。CHOMP 利用由到障碍物的符号距离预计算的势场来优化轨迹，但在非凸障碍物下可能陷入局部最优，使得初始猜测很重要；基于优化的方法（CHOMP、TrajOpt、KOMO、GPMP）通常只能找到局部最优解，缺乏完备性或最优性保证。<sup>[21](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-csr.2018.0003)</sup><sup> • </sup><sup>[29](https://www.annualreviews.org/content/journals/10.1146/annurev-control-061623-094742)</sup> 在一项六种随时规划器的比较中，表现最稳定的是一种基于采样规划与轨迹优化的混合方法。<sup>[30](https://motion.cs.illinois.edu/papers/IROS2014-OptimalBenchmarking.pdf)</sup>

**基于学习的规划器**自 2023 年以来不断扩展。Neural MP 在程序生成的场景上训练通用规划器，报告在 64 项任务上相比基于采样的方法真实世界成功率提升 23%。<sup>[2](https://doi.org/10.48550/arxiv.2409.05864)</sup>

## References

1. [Motion Planning: The Essentials (LaValle)](https://lavalle.pl/papers/Lav11b.pdf)
2. [Dalal, Murtaza and colleagues (2024). Neural MP: A Generalist Neural Motion Planner. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2409.05864)
3. [Ch. 12 - Sampling-based motion planning (Underactuated Robotics, MIT)](https://underactuated.csail.mit.edu/planning.html)
4. [Peter Hart, Nils Nilsson, Bertram Raphael (1968). A Formal Basis for the Heuristic Determination of Minimum Cost Paths. IEEE Transactions on Systems Science and Cybernetics.](https://doi.org/10.1109/tssc.1968.300136)
5. [Sampling-based Algorithms for Optimal Motion Planning (arXiv:1105.1186)](https://ar5iv.labs.arxiv.org/html/1105.1186)
6. [Anytime Motion Planning using the RRT*](https://ttic.edu/ripl/assets/publications/karaman11.pdf)
7. [Motion Planning chapter (Kavraki & LaValle)](https://www.clear.rice.edu/comp450/papers/chapter_kav_lav.pdf)
8. [4.03: Sampling based Path Planning (eng.libretexts.org)](https://eng.libretexts.org/Bookshelves/Mechanical_Engineering/Introduction_to_Autonomous_Robots_%28Correll%29/04%3A_Path_Planning/4.03%3A_Sampling-based_Path_Planning)
9. [A Guide to Heuristic-based Path Planning (Likhachev et al., ICAPS-05 workshop)](https://www.cs.cmu.edu/%7emaxim/files/hsplanguide_icaps05ws.pdf)
10. [B4M36UIR Lecture 03: Path Planning (Faigl, CTU Prague)](https://cw.fel.cvut.cz/b201/_media/courses/b4m36uir/lectures/b4m36uir-lec03-handout-2x2.pdf)
11. [Motion Planning Lecture 3 - Graph-based Planning: Representations, A*, Admissible heuristics](https://www.aorthey.com/assets/lectures/motion-planning/03_lecture.pdf)
12. [Probabilistic Roadmaps for Path Planning in High-Dimensional Configuration Spaces (IEEE Trans. Robotics and Automation, 1996)](https://www.cs.cmu.edu/~motionplanning/papers/sbp_papers/PRM/prmbasic_01.pdf)
13. [Planning Algorithms, Section 5.4.1 The General Framework (LaValle)](https://msl.cs.uiuc.edu/~lavalle/planning/node219.html)
14. [From Dynamic Programming to RRTs: Algorithmic Design of Feasible Trajectories (LaValle, 2002)](https://lavalle.pl/papers/Lav02.pdf)
15. [Sertac Karaman, Emilio Frazzoli (2011). Sampling-based algorithms for optimal motion planning. The International Journal of Robotics Research.](https://doi.org/10.1177/0278364911406761)
16. [The D* Algorithm for Real-Time Planning of Optimal Traverses (Stentz, 1994)](https://publications.ri.cmu.edu/storage/publications/pub_files/pub3/stentz_anthony__tony__1994_2/stentz_anthony__tony__1994_2.pdf)
17. [Making A* Run Faster than D*-Lite for Path-Planning in Partially Known Terrain (Hernández & Baier, AAAI 2014)](http://www.cs.toronto.edu/~jabaier/publications/HernandezBA14.pdf)
18. [Gammell, Jonathan D., Srinivasa, Siddhartha S., Barfoot, Timothy D. (2014). Informed RRT*: Optimal Sampling-based Path Planning Focused via Direct Sampling of an Admissible Ellipsoidal Heuristic. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1404.2334)
19. [BIT*: Batch Informed Trees for Optimal Sampling-based Planning (ICRA 2015)](https://personalrobotics.cs.washington.edu/publications/gammell2015bitstar.pdf)
20. [Lucas Janson and colleagues (2015). Fast marching tree: A fast marching sampling-based method for optimal motion planning in many dimensions. The International Journal of Robotics Research.](https://doi.org/10.1177/0278364915577958)
21. [Survey of optimal motion planning (IET Cyber-Systems and Robotics)](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-csr.2018.0003)
22. [Marco Faroni, Nicola Pedrocchi, Manuel Beschi (2024). Adaptive hybrid local–global sampling for fast informed sampling-based optimal path planning. Autonomous Robots.](https://doi.org/10.1007/s10514-024-10157-5)
23. [Informed RRT*: Optimal sampling-based path planning focused via direct sampling of an admissible ellipsoidal heuristic (IROS 2014)](https://robotic-esp.com/papers/gammell_iros14)
24. [Batch Informed Trees (BIT*): Informed asymptotically optimal anytime search (IJRR 2020)](https://robotic-esp.com/papers/gammell_ijrr20)
25. [Practical Motion Planning in Robotics (Kavraki & Latombe, Wiley, 1998)](https://www.kavrakilab.org/publications/kavraki-latombe1998probabilistic-roadmaps-for.pdf)
26. [Informed Sampling for Asymptotically Optimal Path Planning (consolidated TRO 2018 version)](https://www.robots.ox.ac.uk/~mobile/Papers/2018TRO_gammell.pdf)
27. [Comparative analysis of popular mobile robot roadmap path-planning methods (Robotica)](https://www.cambridge.org/core/journals/robotica/article/comparative-analysis-of-popular-mobile-robot-roadmap-pathplanning-methods/95651415E38A60AA4BB71C90F31D576F)
28. [Simulation-based review of classical, heuristic, and metaheuristic path planning algorithms | Scientific Reports](https://www.nature.com/articles/s41598-025-96614-2)
29. [Sampling-Based Motion Planning: A Comparative Review (Annual Reviews)](https://www.annualreviews.org/content/journals/10.1146/annurev-control-061623-094742)
30. [An Empirical Study of Optimal Motion Planning (IROS 2014)](https://motion.cs.illinois.edu/papers/IROS2014-OptimalBenchmarking.pdf)
31. [Sampling-Based Robot Motion Planning: A Review (IEEE Access)](https://ieeexplore.ieee.org/document/6722915)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Graph and network algorithms › Shortest paths

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/path-planning-algorithm

English original: https://www.edgepedia.org/path-planning-algorithm
