# 任意时间修复A*（ARA*）

**任意时间修复A*（ARA*）**是一种任意时间启发式搜索算法：它能快速找到最短路径问题的第一个解——该解可能是次优的——然后在时间仍有剩余时反复改进它，并且对每个解与最优解的差距给出可证明的界。该算法由[卡内基梅隆大学机器人研究所](https://www.edgepedia.org/zh/carnegie-mellon-university-robotics-institute)（Carnegie Mellon University Robotics Institute）教授马克西姆·利哈切夫（Maxim Likhachev）与杰夫·戈登（Geoff Gordon）、[塞巴斯蒂安·特龙](https://www.edgepedia.org/zh/sebastian-thrun)（Sebastian Thrun）在神经信息处理系统大会（NeurIPS）2003年论文及配套技术报告CMU-CS-03-148中提出。<sup>[1](https://publications.ri.cmu.edu/ara-anytime-a-with-provable-bounds-on-sub-optimality)</sup><sup> • </sup><sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 来源 | 利哈切夫、戈登与特龙，《ARA*：具有可证明次优性界的任意时间A*》，NeurIPS 2003，第767–774页；技术报告CMU-CS-03-148（2003年7月）<sup>[1](https://publications.ri.cmu.edu/ara-anytime-a-with-provable-bounds-on-sub-optimality)</sup><sup> • </sup><sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup> |
| 核心机制 | 一系列加权A*搜索，其键值为 \( f(s) = g(s) + \epsilon \cdot h(s) \)，从较大的 \( \epsilon_0 \) 开始，每次迭代将 \( \epsilon \) 减少固定的 \( \Delta\epsilon \) <sup>[3](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)</sup> |
| 保证 | 每个发布的解都是 \( \epsilon \)-次优的，即其代价至多为最优代价的 \( \epsilon \) 倍；当 \( \epsilon = 1 \) 时，该解可证明为最优<sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup> |
| 效率机制 | 在一次迭代内本会被重复扩展的状态被存入INCONS列表，并且只在下一轮迭代才返回OPEN，从而复用先前的搜索工作<sup>[3](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)</sup> |
| 实测加速 | 在非均匀代价的机械臂实验中，ARA*在约15分钟和600万次扩展内达到4.5的界，而一连串独立的A*搜索约需1.66小时和超过4000万次扩展<sup>[4](https://robots.stanford.edu/papers/Likhachev03c.pdf)</sup> |
| 任意时间额外开销 | 与一次普通的最优A*运行相比，ARA*达到可保证最优所需时间约为6.0分钟，而普通最优A*为5.8分钟，额外开销为3%<sup>[4](https://robots.stanford.edu/papers/Likhachev03c.pdf)</sup> |
| 范围 | 任意时间但非增量式：它不处理图的一般性变化；任意时间D*（Anytime D*）将其扩展到动态图<sup>[5](https://journals.sagepub.com/doi/abs/10.1177/02783649241227869)</sup><sup> • </sup><sup>[6](https://www.sciencedirect.com/science/article/pii/S0004370216000163)</sup> |

## 动机

当决策时间有限时，任意时间算法很有用，因为它能非常快地返回第一个可能高度次优的解，然后持续改进，直到分配的时间用完。当时已有的任意时间搜索方法很少能给出其结果次优性的界，这很难，因为最优解本身的代价在找到最优解之前通常是未知的。界很有价值，因为它让用户能够判断解的质量、在多个规划轮次之间分配时间，并决定是继续还是停止搜索。<sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup>

起点是加权A*。A*维护 \( g(s) \)，即从起点到状态 \( s \) 所找到的最佳路径的代价，并按 \( f(s) = g(s) + h(s) \) 的顺序扩展状态，其中 \( h(s) \) 估计到目标的剩余代价。将启发式乘以膨胀因子 \( \epsilon > 1 \) 会使搜索变得贪婪而快速，并且只要启发式是可采纳的——即它从不高估真实剩余代价——返回的解就保证其代价不超过最优代价的 \( \epsilon \) 倍。一种朴素的任意时间方案会以递减的 \( \epsilon \) 运行一连串这样的搜索，但每次搜索都会重复前一次搜索的大部分工作。<sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup>

## 算法

ARA*反复运行加权A*，从较大的 \( \epsilon \) 开始，并在每次执行前减小它，直到 \( \epsilon = 1 \)。每次迭代后，它发布当前解，该解的代价保证不超过最优代价的 \( \epsilon \) 倍。主循环调用IMPROVESOLUTION过程，然后将 \( \epsilon \) 减少固定量 \( \Delta\epsilon \)，更新OPEN中状态的键值 \( f(s) \)，并剪除那些 \( g(s) + h(s) \) 至少等于当前最优解代价 \( G \) 的状态。<sup>[3](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)</sup><sup> • </sup><sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup>

IMPROVESOLUTION以两种方式之一终止：当找到改进解时，该解随后被保证为 \( \epsilon \)-次优；或者当OPEN中的最小 \( f \) 值超过 \( G \) 时，此时当前最优解被证明为 \( \epsilon \)-次优。<sup>[3](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)</sup>

**INCONS列表。** 使用膨胀启发式时，A*可能多次重复扩展状态，因为膨胀可能破坏一致性——即保证每个状态至多被扩展一次的性质。ARA*限制每个状态在每次迭代中至多被扩展一次：某个 \( g \) 值被降低的状态，只有在当前迭代中尚未被扩展时才插入OPEN；否则它被放入一个称为INCONS的辅助列表。INCONS中的状态只在下一轮迭代开始时、即 \( \epsilon \) 已改变后才放回OPEN。于是OPEN与INCONS的并集恰好是局部不一致状态的集合，它作为下一次搜索中传播代价的起点。正是这种对先前搜索工作的复用，使ARA*比运行独立的加权A*搜索显著更高效。<sup>[3](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)</sup><sup> • </sup><sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup>

第二项改动涉及终止条件。由于IMPROVESOLUTION复用早先迭代的工作，目标状态可能从未被插入OPEN，因此通常的A*停止规则被替换：一旦 \( f(s_{\mathrm{goal}}) \) 等于OPEN中状态的最小 \( f \) 值，搜索就停止。这个条件也避免扩展目标状态本身。<sup>[2](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)</sup>

## 理论保证

技术报告证明：每次选择一个状态进行扩展时，其 \( \epsilon \) 值给出当前解次优性的界；并且当启发式一致时，将每个状态限制为每次迭代至多扩展一次不会使 \( \epsilon \) 界失效。<sup>[3](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)</sup> 报告作者称其包含该算法完整的正确性证明。<sup>[7](https://www.cs.cmu.edu/~ggordon/)</sup>

## 实验结果

原始评估涵盖一个模拟机器人运动学机械臂，以及户外巡视器的动态路径规划。<sup>[1](https://publications.ri.cmu.edu/ara-anytime-a-with-provable-bounds-on-sub-optimality)</sup>

**机械臂。** 在动作代价均匀时，一连串A*搜索达到 \( \epsilon = 1.1 \) 所需时间超过ARA*的4.5倍；两者都从 \( \epsilon = 3.0 \) 开始，并以0.02为步长递减。在非均匀代价下——此时移动更靠近基座的关节代价更高，启发式信息量也更低——ARA*在约15分钟和600万次状态扩展内把 \( \epsilon \) 从10降到4.5，而一连串A*搜索需要约1.66小时和超过4000万次扩展才能达到相同的界，加速超过6倍。10分钟后，ARA*已达到4.95的界，而A*仅达到5.45。在更简单的环境中，最优A*找到最优解约需5.8分钟和2,202,666次扩展，而ARA*以0.2为步长把 \( \epsilon \) 从3.0降到1.0并同样保证最优性，约需6.0分钟和2,207,178次扩展，为任意时间特性带来3%的额外开销。<sup>[4](https://robots.stanford.edu/papers/Likhachev03c.pdf)</sup>

**户外巡视器。** 其动机是在大型户外环境中为移动机器人进行高效路径规划；在这些环境中，良好轨迹包含快速运动和利用机器人动量的大弧度转弯。规划器使用由 \( xy \) 位置、朝向和速度构成的四维状态空间，状态数超过2000万，地图大小为91.2米×94.4米，并离散为0.4米×0.4米的栅格；一个在53,808个状态上运行的快速二维A*规划器为四维ARA*搜索提供启发式。最优四维规划器生成其规划需要11.196秒，而ARA*四维规划器从 \( \epsilon = 2.5 \) 开始，在556毫秒内生成第一个规划。运行最优规划器的机器人在收到目标25秒后仍接近其路径起点，而运行ARA*的机器人已经前进得多得多，并且其规划在这段时间内已收敛到最优规划（\( \epsilon \) 降至1）。<sup>[4](https://robots.stanford.edu/papers/Likhachev03c.pdf)</sup>

## 扩展与应用

**任意时间D*。** ARA*是任意时间但非增量式的：它不处理图的一般性变化。任意时间D*（AD*）将ARA*与LPA*/D* Lite结合，执行一系列膨胀因子递减的搜索，同时在边代价变化时重新规划，并被描述为第一个同时具备任意时间和增量式特性的搜索算法。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0004370216000163)</sup><sup> • </sup><sup>[8](https://www.cs.cmu.edu/~maxim/files/ad_aij08_preprint.pdf)</sup>

**脚步规划。** ARA*已用于人形机器人脚步规划；在该应用中，它在离散化脚步状态上运行一系列加权A*搜索，并在这些搜索之间复用先前信息。在一个杂乱的4米×4米场景中，使用欧几里得启发式的ARA*在2.7秒后产生第一个结果，使用二维Dijkstra启发式时在0.7秒后产生第一个结果，而最优A*需要11.9秒。构建于基于搜索的规划库（Search-Based Planning Library）之上的ROS（Robot Operating System）脚步规划器应用ARA*来获得脚步序列，VIGIR团队（Team VIGIR）在美国国防高级研究计划局（DARPA）机器人挑战赛决赛中使用了ARA*进行脚步规划。<sup>[9](https://www.cs.cmu.edu/~maxim/files/anytimefootstepplanner_humanoids12.pdf)</sup><sup> • </sup><sup>[10](https://www.mdpi.com/1424-8220/22/10/3817)</sup>

**软件与当前使用。** ARA*作为SBPL（基于搜索的规划库）中的arastar规划器发布，SBPL是与ROS配合使用的基于搜索的规划库。<sup>[11](https://github.com/sbpl/sbpl)</sup> 一项2024年的基准测试在相同规划条件下，将SMPL的带运动基元的基于搜索的ARA*与OMPL的基于采样的RRT-Connect进行比较，发现基于采样的规划器在高维空间中表现出更一致的性能，而ARA*在合适的动作空间采样方案下可以显著更好。<sup>[12](https://arxiv.org/abs/2406.09623)</sup> 后续工作继续在其思想基础上发展，包括A-MHA*——一种受ARA*启发的任意时间多启发式A*。<sup>[13](https://arxiv.org/abs/2508.21637)</sup>

## References

1. [Maxim Likhachev, Geoff Gordon, Sebastian Thrun (2003). ARA*: Anytime A* with Provable Bounds on Sub-Optimality. NeurIPS 2003, CMU Robotics Institute repository.](https://publications.ri.cmu.edu/ara-anytime-a-with-provable-bounds-on-sub-optimality)
2. [Maxim Likhachev, Geoff Gordon, Sebastian Thrun (July 2003). ARA*: Formal Analysis. Tech. Report CMU-CS-03-148, Carnegie Mellon University.](https://www.cs.cmu.edu/~ggordon/mlikhach-ggordon-thrun.ara-tr.pdf)
3. [Theorem and algorithm description referencing ARA* (Likhachev, Gordon, and Thrun 2004), ANA* technical report.](https://goldberg.berkeley.edu/ana/ANA-techReport-v7.pdf)
4. [Maxim Likhachev, Geoff Gordon, Sebastian Thrun. ARA*: Formal Analysis (experiments), robots.stanford.edu.](https://robots.stanford.edu/papers/Likhachev03c.pdf)
5. [Jaein Lim et al. (2024). Lazy incremental search for efficient replanning with bounded suboptimality guarantees. IJRR.](https://journals.sagepub.com/doi/abs/10.1177/02783649241227869)
6. [Truncated incremental search. Artificial Intelligence 234 (2016) 49–77, ScienceDirect.](https://www.sciencedirect.com/science/article/pii/S0004370216000163)
7. [Geoff Gordon's home page, Carnegie Mellon University.](https://www.cs.cmu.edu/~ggordon/)
8. [Maxim Likhachev et al. Anytime Search in Dynamic Graphs (AD*), CMU.](https://www.cs.cmu.edu/~maxim/files/ad_aij08_preprint.pdf)
9. [Armin Hornung et al. (2012). Anytime Search-Based Footstep Planning with Suboptimality Bounds, CMU.](https://www.cs.cmu.edu/~maxim/files/anytimefootstepplanner_humanoids12.pdf)
10. [Strategies for Generating Footsteps of Biped Robots in Narrow Sight. Sensors 22(10):3817, MDPI.](https://www.mdpi.com/1424-8220/22/10/3817)
11. [SBPL: Search-Based Planning Library, GitHub.](https://github.com/sbpl/sbpl)
12. [Georgios Sotirchos, Zlatan Ajanovic (2024). Search-based versus Sampling-based Robot Motion Planning: A Comparative Study. arXiv:2406.09623.](https://arxiv.org/abs/2406.09623)
13. [A-MHA*: Anytime Multi-Heuristic A*. arXiv:2508.21637.](https://arxiv.org/abs/2508.21637)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 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/anytime-repairing-a-ara

English original: https://www.edgepedia.org/anytime-repairing-a-ara
