# 纯追踪

纯追踪是一种几何路径跟踪算法，它通过计算连接车辆当前位置与参考路径上前方某一点（即前视点）的圆弧，引导车辆朝该目标点行驶。由于简单且具备实时性能，该算法被广泛用于自动驾驶车辆和移动机器人的横向控制。<sup>[1](https://arxiv.org/abs/2602.18386)</sup><sup> • </sup><sup>[2](https://www.kyb.co.jp/en/products/technical-report/files/products-technical-report_data_no63j_all.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 经典文献 | R. Craig Coulter，《纯追踪路径跟踪算法的实现》，技术报告 CMU-RI-TR-92-01，卡内基梅隆大学机器人研究所，1992年1月，包含几何推导与参数分析<sup>[3](https://publications.ri.cmu.edu/implementation-of-the-pure-pursuit-path-tracking-algorithm)</sup> |
| 核心计算 | 算法在轨迹上找到一个合适的目标点，并计算从当前位置到该点的圆弧曲率半径；转向指令由车辆特性得出<sup>[4](https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/pure-pursuit.html)</sup><sup> • </sup><sup>[2](https://www.kyb.co.jp/en/products/technical-report/files/products-technical-report_data_no63j_all.pdf)</sup> |
| 前视距离的权衡 | 较大的前视距离产生更平滑的路径，但会导致切弯；较小的前视距离能紧密跟踪路径，但可能产生振荡和不稳定行为<sup>[5](https://www.mathworks.com/help/nav/ref/controllerpurepursuit-system-object.html)</sup> |
| 自适应前视 | 前视距离通常随速度缩放；Autoware的简单控制器使用前视距离 = 前视增益 × 目标速度 + 最小前视距离<sup>[6](https://autowarefoundation.github.io/autoware_core/main/control/autoware_simple_pure_pursuit/)</sup> |
| 调节型变体 | Nav2调节型纯追踪控制器增加了基于曲率和邻近度的线速度调节以及主动碰撞检测，由Samsung Research的Shrijit Singh和Steve Macenski开发<sup>[7](https://github.com/ros-navigation/navigation2/blob/main/nav2_regulated_pure_pursuit_controller/README.md)</sup> |
| 生产使用 | 纯追踪作为横向控制器插件用于Autoware的轨迹跟随器，并作为控制器插件用于ROS 2 Nav2导航栈<sup>[8](https://autowarefoundation.github.io/autoware_universe/main/control/autoware_pure_pursuit/)</sup><sup> • </sup><sup>[7](https://github.com/ros-navigation/navigation2/blob/main/nav2_regulated_pure_pursuit_controller/README.md)</sup> |

## 算法工作原理

在每个控制步中，控制器在参考路径上选取位于车辆前方前视距离处的目标点，然后计算经过车辆当前位置与该目标点的圆弧曲率。转向指令由此曲率和车辆几何特性得出。在Autoware.Auto的描述中，目标候选点通过对轨迹进行最近邻搜索找到，候选点必须位于车辆行驶方向上且至少相距前视距离，而恰好位于前视距离处的插值目标点可由该目标点及其前驱点计算得出。目标速度从目标点提取，若不存在目标点，控制器执行紧急停车。<sup>[4](https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/pure-pursuit.html)</sup>

纵向指令单独处理。Autoware的简单实现将目标速度与当前速度之差乘以比例增益，计算纵向加速度，而曲率指令控制转向。<sup>[6](https://autowarefoundation.github.io/autoware_core/main/control/autoware_simple_pure_pursuit/)</sup> MATLAB的`controllerPurePursuit`对象同样为类车或差速驱动机器人计算线速度和曲率输入，假设线速度恒定且曲率与速度无关，并将曲率输出饱和在`MaxCurvature`限值处。<sup>[5](https://www.mathworks.com/help/nav/ref/controllerpurepursuit-system-object.html)</sup>

## 前视距离

最重要的单一参数是前视距离，即从车辆当前位置到路径上所选取目标点的距离。前视距离较大的车辆产生平滑的路径，但在转弯处转弯半径更大，会切弯；较小的前视距离能紧密跟踪路径并急转弯，但可能产生振荡和不稳定行为。<sup>[5](https://www.mathworks.com/help/nav/ref/controllerpurepursuit-system-object.html)</sup>

由于合适的取值取决于运行条件，包括速度、路径形状和地形，生产实现使前视距离具有自适应性。Autoware的纯追踪控制器根据速度、横向误差和曲率比值计算前视距离，并设有配置边界：速度比值默认为2.4，横向误差比值默认为3.6，曲率比值默认为120.0，最小前视距离为4.35米，最大为15.0米。<sup>[8](https://autowarefoundation.github.io/autoware_universe/main/control/autoware_pure_pursuit/)</sup>更简单的Autoware Core节点使用线性速度调度：前视距离 = 前视增益 × 目标速度 + 最小前视距离，增益和最小距离的默认值均为1.0。<sup>[6](https://autowarefoundation.github.io/autoware_core/main/control/autoware_simple_pure_pursuit/)</sup>一个Autoware数据采集工具将同一量参数化为2.0秒的前视时间。<sup>[9](https://autowarefoundation.github.io/autoware_tools/latest/control_data_collecting_tool/)</sup>

## 自适应与调节型变体

**自适应纯追踪**根据当前速度改变前视距离，使控制器在低速时紧密跟踪、高速时保持稳定。Nav2调节型纯追踪控制器在此基础上构建，并增加了基于路径曲率和障碍物邻近度的线速度调节，面向消费级、工业级和服务机器人。<sup>[7](https://github.com/ros-navigation/navigation2/blob/main/nav2_regulated_pure_pursuit_controller/README.md)</sup>

**碰撞检测**是调节型变体的主要安全机制。控制器对当前线速度和角速度指令进行前向仿真，最长可达配置时间，在每一步将机器人足迹向前投影，若检测到碰撞则停止。时间上限被限制在胡萝卜点（前视点）距离以内，以确保在受限环境中检查不会超出预期运动范围；默认的`max_allowed_time_to_collision_up_to_carrot`为1.0秒。<sup>[10](https://ros-navigation.github.io/mkdocs.nav2.org/rolling/configuration_and_development/configuration_guide/controller_plugins/configuring_regulated_pp/)</sup>这种前向投影减少了跟随前先旋转至路径朝向的需求，而普通纯追踪控制器即使在稍显局促的空间中也无法从这种情况恢复。<sup>[7](https://github.com/ros-navigation/navigation2/blob/main/nav2_regulated_pure_pursuit_controller/README.md)</sup>

调节型控制器还会在高曲率路径上和接近目标时减慢机器人速度，`approach_velocity_scaling_dist`（默认0.6米）是开始向目标减速的距离。<sup>[10](https://ros-navigation.github.io/mkdocs.nav2.org/rolling/configuration_and_development/configuration_guide/controller_plugins/configuring_regulated_pp/)</sup>Nav2的调参指南推荐使用调节型纯追踪进行精确路径跟随，通常与运动学可行的规划器配合使用，如状态栅格或混合A*，这些规划器的路径已知在硬性物理约束下可行驶。<sup>[11](https://docs.nav2.org/jazzy/configuration_and_development/tuning_guide/)</sup>

## 在车辆软件栈中的使用

在Autoware中，纯追踪以多种复杂度层次出现。Universe的`pure_pursuit_controller`是`autoware_trajectory_follower_node`中的横向控制器插件，接收参考轨迹和里程计数据并输出目标转向角，可选通过移动平均进行路径平滑（默认25点滤波器）并输出预测路径。<sup>[8](https://autowarefoundation.github.io/autoware_universe/main/control/autoware_pure_pursuit/)</sup>Core的`simple_pure_pursuit`节点是最简版本，从`motion_velocity_smoother`接收轨迹。<sup>[6](https://autowarefoundation.github.io/autoware_core/main/control/autoware_simple_pure_pursuit/)</sup>Autoware.Auto设计在基础算法之上增加了使用CATR（恒定转弯角速度和速度）模型的延迟补偿、基于速度的前视估计以及用于目标点选择的行驶方向策略。<sup>[4](https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/pure-pursuit.html)</sup>一份关于集成转向控制的行业技术报告指出，Autoware中使用的纯追踪方法从前视点及其与路径的偏差计算目标横摆角速度，然后根据车辆特性确定转向角。<sup>[2](https://www.kyb.co.jp/en/products/technical-report/files/products-technical-report_data_no63j_all.pdf)</sup>

## 研究扩展

由于性能强烈依赖于参数选择，近期工作致力于自动化前视选择。一篇面向自动驾驶赛车的自适应前视论文提出了一种贪心算法，为参考轨迹上的每个路点分配最优前视距离，以改善单圈用时、平均单圈速度和轨迹偏差。<sup>[12](https://arxiv.org/abs/2111.08873)</sup>一种使用PPO训练的强化学习方法在每个控制步根据速度和曲率特征联合选择前视距离和转向增益；在仿真和实车测试中，它优于固定前视纯追踪、速度调度自适应纯追踪以及仅用强化学习选择前视距离的变体，并在评估设置下在圈速、跟踪精度和转向平滑度方面超过了运动学MPC赛道线跟踪器。<sup>[1](https://arxiv.org/abs/2602.18386)</sup>一个相关方向在F1TENTH Gym仿真器中用强化学习训练动态前视策略，并部署到[ROS 2](https://www.edgepedia.org/zh/ros-2)环境中，与固定前视和自适应基线进行比较。<sup>[13](https://arxiv.org/abs/2603.28625)</sup>

## References

1. [Learning to Tune Pure Pursuit in Autonomous Racing: Joint Lookahead and Steering-Gain Control with PPO, arXiv](https://arxiv.org/abs/2602.18386)
2. [Research on SA-PS Integrated Control Technology, KYB Technical Report](https://www.kyb.co.jp/en/products/technical-report/files/products-technical-report_data_no63j_all.pdf)
3. [R. Craig Coulter (1992). Implementation of the Pure Pursuit Path Tracking Algorithm, CMU-RI-TR-92-01, Robotics Institute, Carnegie Mellon University](https://publications.ri.cmu.edu/implementation-of-the-pure-pursuit-path-tracking-algorithm)
4. [Pure pursuit, Autoware.Auto documentation](https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/pure-pursuit.html)
5. [controllerPurePursuit, MathWorks documentation](https://www.mathworks.com/help/nav/ref/controllerpurepursuit-system-object.html)
6. [Simple Pure Pursuit, Autoware Core documentation](https://autowarefoundation.github.io/autoware_core/main/control/autoware_simple_pure_pursuit/)
7. [Nav2 Regulated Pure Pursuit Controller README, navigation2 repository](https://github.com/ros-navigation/navigation2/blob/main/nav2_regulated_pure_pursuit_controller/README.md)
8. [Pure Pursuit Controller, Autoware Universe documentation](https://autowarefoundation.github.io/autoware_universe/main/control/autoware_pure_pursuit/)
9. [Control data collecting tool, Autoware Tools documentation](https://autowarefoundation.github.io/autoware_tools/latest/control_data_collecting_tool/)
10. [Regulated Pure Pursuit configuration, Nav2 documentation](https://ros-navigation.github.io/mkdocs.nav2.org/rolling/configuration_and_development/configuration_guide/controller_plugins/configuring_regulated_pp/)
11. [Tuning Guide, Nav2 documentation (Jazzy)](https://docs.nav2.org/jazzy/configuration_and_development/tuning_guide/)
12. [Adaptive Lookahead Pure-Pursuit for Autonomous Racing, arXiv](https://arxiv.org/abs/2111.08873)
13. [Dynamic Lookahead Distance via Reinforcement Learning-Based Pure Pursuit for Autonomous Racing, arXiv](https://arxiv.org/abs/2603.28625)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pure-pursuit

English original: https://www.edgepedia.org/pure-pursuit
