# 人工势场法

人工势场法（APF）是一种机器人路径规划与控制技术，它通过沿着由目标引力和障碍物斥力合成的势场的负梯度运动，将机器人引导向目标。由于势场可以根据机载传感器数据实时计算，APF仍然广泛用作四旋翼飞行器、自动驾驶汽车、自主移动机器人和船舶中的局部规划器与反应式控制器。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>它产生控制力，并积分得到轨迹，无需构建全局地图。

| 关键事实 | 详情 |
|---|---|
| 原理 | 机器人遵循 \( F(q) = -\nabla U(q) \)，即目标引力与障碍物斥力组合势的负梯度。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup> |
| 引力势 | 二次势阱 \( U_{\mathrm{att}}(q) = \tfrac{1}{2} k_{\mathrm{att}} \| q - q_{\mathrm{goal}} \|^2 \)，增益 \( k_{\mathrm{att}} > 0 \)。<sup>[3](https://manipulapy.readthedocs.io/en/latest/user%5Fguide/Potential_Field.html)</sup> |
| 斥力势 | 反距离形式，仅在每个障碍物的影响距离 \( d_0 \) 内生效。<sup>[3](https://manipulapy.readthedocs.io/en/latest/user%5Fguide/Potential_Field.html)</sup> |
| 计算成本 | 单次梯度求值耗时微秒级，支持约1 kHz的控制频率，且无需全局地图。<sup>[4](https://unseel.com/engineering/potential-field-navigation)</sup> |
| 主要失效模式 | 局部极小值：当引力和斥力相互抵消时，机器人在到达目标前停滞。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup> |
| 关键变体 | 导航函数、调和势场、涡旋场以及混合APF-RRT规划器。<sup>[5](https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf)</sup> |

## 工作原理

该方法将机器人视为在力场中运动的质点：目标位置是吸引极，障碍物是斥力面。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup>总人工势场是两个分量之和，

\[ U_{\mathrm{art}}(q) = U_{\mathrm{att}}(q) + U_{\mathrm{ob}}(q), \]

指令力是各负梯度之和，\( F^{*} = F_{\mathrm{att}} + F_{\mathrm{rep}} \)，其中 \( F_{\mathrm{att}} = -\nabla U_{\mathrm{att}} \) 且 \( F_{\mathrm{rep}} = -\nabla U_{\mathrm{ob}} \)。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup>斥力势是非负连续可微函数，在障碍物表面趋于无穷，但限制在由距离参数 \( d_0 \) 界定的影响区域内，因此远处障碍物不施加力。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup>

在现代标准形式中，引力势是二次势阱 \( U_{\mathrm{att}}(q) = \tfrac{1}{2} k_{\mathrm{att}} \| q - q_{\mathrm{goal}} \|^2 \)，而位于距离 \( d_i = \| q - o_i \| \) 处的障碍物 \( i \) 的斥力势为

\[ U_{\mathrm{rep}}(q) = \sum_{i} \tfrac{1}{2} k_{\mathrm{rep}} \left( \tfrac{1}{d_i} - \tfrac{1}{d_0} \right)^2 \quad \text{若 } d_i \le d_0, \quad \text{否则为 } 0, \]

其闭式梯度为 \( \nabla U_{\mathrm{att}} = k_{\mathrm{att}} \cdot (q - q_{\mathrm{goal}}) \) 和 \( \nabla U_{\mathrm{rep}} = -\sum_{i} k_{\mathrm{rep}} \cdot (1/d_i - 1/d_0) \cdot (1/d_i^3) \cdot (q - o_i) \)，其中求和覆盖影响距离内的障碍物。<sup>[3](https://manipulapy.readthedocs.io/en/latest/user%5Fguide/Potential_Field.html)</sup>在距离阈值 \( d^{*} \) 处切换的锥形引力势可避免纯二次势在远离目标时产生过大的力。<sup>[5](https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf)</sup>梯度可解释为力、加速度或速度，但只有速度解释能保证在目标处的渐近稳定性，因此它是最常见的选择。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>加入阻尼可使机器人稳定停在目标处，而不是围绕目标振荡。<sup>[6](https://modernrobotics.northwestern.edu/nu-gm-book-resource/10-6-virtual-potential-fields/)</sup>

## 实现方法

实践者定义目标位形与增益 \( k_{\mathrm{att}} \) 和 \( k_{\mathrm{rep}} \)，构建障碍物或距离模型（对于机械臂，可采用由刷火算法等生成的网格距离图，并在机器人本体上设置若干控制点），然后迭代梯度下降

\[ q^{(i+1)} = q^{(i)} - \alpha^{(i)} \nabla U(q^{(i)}) \]

直到梯度范数低于阈值 \( \varepsilon \)，或在容差内到达目标；一个有记录的实现使用0.05的步长、\(10^{-3}\)的目标容差，以及最多约100步。<sup>[5](https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf)</sup><sup> • </sup><sup>[3](https://manipulapy.readthedocs.io/en/latest/user%5Fguide/Potential_Field.html)</sup>对于机械臂，控制点处的工作空间力通过雅可比转置映射为关节力矩，\( J^{\mathsf{T}} \cdot f = u \)。<sup>[6](https://modernrobotics.northwestern.edu/nu-gm-book-resource/10-6-virtual-potential-fields/)</sup><sup> • </sup><sup>[5](https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf)</sup>调参很重要：高斥力增益带来更强的避障，但可能产生局部极小值；仅与距离成正比的引力在远距离产生过大的力，而在目标附近力又过小，因此改进版本在距离阈值 \( d^{*} \) 处对引力势分段。<sup>[3](https://manipulapy.readthedocs.io/en/latest/user%5Fguide/Potential_Field.html)</sup><sup> • </sup><sup>[7](https://sage.cnpereading.com/doi/10.1177/00202940241268612)</sup>

## 起源

乌萨马·哈提卜（Oussama Khatib）在《机械臂与移动机器人的实时避障》（“Real-Time Obstacle Avoidance for Manipulators and Mobile Robots”）中提出了用于机械臂与移动机器人实时避障的人工势场法，该文于1986年发表于《国际机器人研究杂志》（The International Journal of Robotics Research）。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup>该方法源自哈提卜与让-弗朗索瓦·勒迈特（Jean-François Le Maitre）在末端执行器运动控制与避障方面的工作，并于1978年在[蒙彼利埃](https://www.edgepedia.org/zh/montpellier)自动化实验室（Laboratoire d'Automatique de Montpellier）的一台MA23机械臂上实现。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup>哈提卜在1985年耶鲁研讨会（Yale Workshop）论文<sup>[8](https://doi.org/10.1007/978-1-4757-1895-9_26)</sup>和1986年期刊论文中提出了势场方法与操作空间表述，并在用于PUMA 560机器人的COSMOS系统中实现；COSMOS演示包括利用视觉传感对运动障碍物进行实时碰撞避免。<sup>[2](https://doi.org/10.1177/027836498600500106)</sup>理论层面的回应来自丹尼尔·E·科迪切克（Daniel E. Koditschek）与埃隆·里蒙（Elon Rimon）1990年关于带边界流形上机器人导航函数的工作<sup>[9](https://doi.org/10.1016/0196-8858%2890%2990017-s)</sup>，以及C. I. 康诺利（C. I. Connolly）、J. B. 伯恩斯（J. B. Burns）和R. 魏斯（R. Weiss）于1990年提出的调和函数规划<sup>[10](https://onlinelibrary.wiley.com/doi/10.1002/rob.4620100704)</sup>。一篇有影响力的批评性文章指出了势场导航的四个固有问题。<sup>[11](https://www2.cs.sfu.ca/~vaughan/teaching/415/papers/PF_limitations.pdf)</sup>

## 变体

[导航函数](https://www.edgepedia.org/zh/navigation-function)是势函数 \( \varphi: Q \to [0,1] \)，它们光滑（至少 \( C^2 \)）、在目标处有唯一极小值、在自由空间边界上一致最大，并且是莫尔斯函数；在具有可调指数 \( \kappa \) 的球世界上构造，并通过微分同胚扩展到星形世界后，它们保证目标是唯一驻点，但只能对有限类系统计算。<sup>[5](https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf)</sup><sup> • </sup><sup>[6](https://modernrobotics.northwestern.edu/nu-gm-book-resource/10-6-virtual-potential-fields/)</sup>调和势场满足[拉普拉斯方程](https://www.edgepedia.org/zh/laplaces-equation)，因此没有虚假局部极小值；佐藤圭介（Keisuke Sato）1992年的拉普拉斯势场面向无死锁运动规划<sup>[12](https://doi.org/10.1163/156855393x00285)</sup>，而J. 巴拉康（J. Barraquand）、B. 朗格卢瓦（B. Langlois）和J.-C. 拉托姆（J.-C. Latombe）1992年的数值技术为每个障碍物赋予类静电势，将自由空间拓扑推导为最小势谷，并把沿这些势谷的全局规划器与局部避障规划器结合起来。<sup>[13](https://doi.org/10.1109/21.148426)</sup>Y. K. 黄（Y. K. Hwang）与N. 阿胡贾（N. Ahuja）1992年的表述将路径规划视为势场上的数值优化。<sup>[14](https://doi.org/10.1109/70.127236)</sup>涡旋场将斥力旋转为与等势线相切，从而避开局部极小值，但不再保证无碰撞运行。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>其他补救措施包括绕过预测极小值的虚拟墙<sup>[15](https://pdfs.semanticscholar.org/9be6/859309f47056807d6cf25ee6dfc2b0dcd899.pdf)</sup>、细菌APF（BAPF）——它用围绕智能体的候选点上的组合优化替代梯度下降<sup>[16](https://export.arxiv.org/pdf/2210.17482v4.pdf)</sup>——以及由神经网络学习或自适应调整势场的学习增强方案。<sup>[17](https://www.nature.com/articles/s41598-025-96614-2)</sup>

## 应用

除哈提卜最初的机械臂演示外，APF还用于四旋翼飞行器、自动驾驶汽车、自主移动机器人和船舶。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>无人机（UAV）应用包括无障碍物且无碰撞的通信中继定位<sup>[18](https://doi.org/10.1007/s10846-012-9761-y)</sup>，以及用动态APF跟踪地面移动目标。<sup>[19](https://doi.org/10.1109/access.2020.3032929)</sup>一个常见的实际角色是作为混合规划器内部的局部层：全局规划器（A*、RRT或采样方法）选择路线，势场处理航点之间的避障。

## 局限与替代方案

博伦斯坦（Borenstein）与科伦（Koren）指出了四个固有问题：局部极小值导致的陷阱情形、密集障碍物之间无通路、存在障碍物时的振荡，以及狭窄通道中的振荡。<sup>[11](https://www2.cs.sfu.ca/~vaughan/teaching/415/papers/PF_limitations.pdf)</sup>当引力和斥力相互抵消时会发生停滞，产生总势场的非目标驻点，通常出现在凸障碍物附近或垂直于轨迹的墙附近；在狭窄走廊中，斥力势可能超过引力势，使穿越无法进行。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>另一种失效是GNRON（目标因障碍物不可达）：当目标位于障碍物的影响半径内时，斥力持续占优，目标变得不可达。<sup>[20](https://www.mdpi.com/2504-446X/10/4/240)</sup>该方法还对参数调优敏感，基本的静态障碍物表述不考虑障碍物运动，尽管动态扩展可以纳入运动障碍物。<sup>[17](https://www.nature.com/articles/s41598-025-96614-2)</sup>补救措施分为三类：重新设计斥力势、自适应缩放引力与斥力权重，以及与预测、优化、全局规划或遥操作相结合。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>与保证完备性和最优性的A*<sup>[17](https://www.nature.com/articles/s41598-025-96614-2)</sup>相比，或与在数千次迭代中执行离线全局搜索的RRT*相比，APF以完备性换取常数时间的机载推理；混合方案以显著增加计算为代价换回可靠性。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup><sup> • </sup><sup>[20](https://www.mdpi.com/2504-446X/10/4/240)</sup>综述将APF与复杂度相近的局部规划器（如动态窗口法和时间弹性带）相比较，而不是与全局规划器相比较。<sup>[1](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)</sup>

## References

1. [Artificial potential fields revisited: advances, limitations, and hybrid solutions in modern robotics](https://iopscience.iop.org/article/10.1088/2631-8695/ae73e7)
2. [Oussama Khatib (1986). Real-Time Obstacle Avoidance for Manipulators and Mobile Robots. The International Journal of Robotics Research.](https://doi.org/10.1177/027836498600500106)
3. [Potential Field Module User Guide (ManipulaPy documentation)](https://manipulapy.readthedocs.io/en/latest/user%5Fguide/Potential_Field.html)
4. [Potential Field Path Planning, Explained, Formula & Interactive (Unseel)](https://unseel.com/engineering/potential-field-navigation)
5. [Robotic Motion Planning: Potential Functions (CMU 16-735 lecture notes, Howie Choset)](https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf)
6. [Modern Robotics, Chapter 10.6: Virtual Potential Fields](https://modernrobotics.northwestern.edu/nu-gm-book-resource/10-6-virtual-potential-fields/)
7. [Integration of improved APF and RRT algorithms for enhanced path planning in mobile robotics (Measurement and Control, SAGE)](https://sage.cnpereading.com/doi/10.1177/00202940241268612)
8. [Oussama Khatib (1986). The Potential Field Approach And Operational Space Formulation In Robot Control. .](https://doi.org/10.1007/978-1-4757-1895-9_26)
9. [Robot navigation functions on manifolds with boundary (Advances in Applied Mathematics, 1990)](https://doi.org/10.1016/0196-8858%2890%2990017-s)
10. [The applications of harmonic functions to robotics](https://onlinelibrary.wiley.com/doi/10.1002/rob.4620100704)
11. [Potential Field Methods and Their Inherent Limitations for Mobile Robot Navigation](https://www2.cs.sfu.ca/~vaughan/teaching/415/papers/PF_limitations.pdf)
12. [Keisuke Sato (1992). Deadlock-free motion planning using the Laplace potential field. Advanced Robotics.](https://doi.org/10.1163/156855393x00285)
13. [J. Barraquand, B. Langlois, J.-C. Latombe (1992). Numerical potential field techniques for robot path planning. IEEE Transactions on Systems Man and Cybernetics.](https://doi.org/10.1109/21.148426)
14. [Y.K. Hwang, N. Ahuja (1992). A potential field approach to path planning. IEEE Transactions on Robotics and Automation.](https://doi.org/10.1109/70.127236)
15. [Efficient Local Path Planning Algorithm Using Artificial Potential Field Supported by Augmented Reality](https://pdfs.semanticscholar.org/9be6/859309f47056807d6cf25ee6dfc2b0dcd899.pdf)
16. [Improved Artificial Potential Field-Based Path Planning Algorithms for Resource-Constrained Agents in Unknown Cluttered Environments (arXiv 2210.17482)](https://export.arxiv.org/pdf/2210.17482v4.pdf)
17. [Simulation-based review of classical, heuristic, and metaheuristic path planning algorithms | Scientific Reports](https://www.nature.com/articles/s41598-025-96614-2)
18. [Omer Cetin, Ibrahim Zagli, Guray Yilmaz (2012). Establishing Obstacle and Collision Free Communication Relay for UAVs with Artificial Potential Fields. Journal of Intelligent & Robotic Systems.](https://doi.org/10.1007/s10846-012-9761-y)
19. [Herath Mpc Jayaweera, Samer Hanoun (2020). A Dynamic Artificial Potential Field (D-APF) UAV Path Planning Technique for Following Ground Moving Targets. IEEE Access.](https://doi.org/10.1109/access.2020.3032929)
20. [Hierarchical Neural-Guided Navigation with Vortex Artificial Potential Field for Robust Path Planning in Complex Environments (Drones, MDPI, 2026)](https://www.mdpi.com/2504-446X/10/4/240)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/artificial-potential-field-method

English original: https://www.edgepedia.org/artificial-potential-field-method
