# CHOMP 轨迹优化

CHOMP（Covariant Hamiltonian Optimization for Motion Planning，运动规划的协变哈密顿优化）是一种基于梯度的机器人运动规划轨迹优化方法，它通过最小化一个由平滑项和避障项组合而成的代价泛函，迭代地改进初始轨迹。<sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup> 该方法由卡内基梅隆大学机器人研究所和英特尔匹兹堡研究中心的 Nathan Ratliff、Matt Zucker、J. Andrew Bagnell 和 Siddhartha Srinivasa 在 2009 年 ICRA 论文中提出，并在 2013 年由 Zucker、Ratliff、Anca Dragan、Mikhail Pivtoraiko、Matthew Klingensmith、Christopher Dellin、Bagnell 和 Srinivasa 发表在《国际机器人研究杂志》上的论文中进一步发展。<sup>[2](https://ieeexplore.ieee.org/abstract/document/5152817/)</sup><sup> • </sup><sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup>

| 关键事实 | 详情 |
|---|---|
| 全名 | Covariant Hamiltonian Optimization for Motion Planning（运动规划的协变哈密顿优化） |
| 首次发表 | ICRA 2009，日本神户（2009 年 5 月 12–17 日）；期刊版发表于《国际机器人研究杂志》32(9)，第 1164–1193 页，2013 年 8 月<sup>[2](https://ieeexplore.ieee.org/abstract/document/5152817/)</sup><sup> • </sup><sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup> |
| 目标 | 一个在平滑代价（路径切向量范数平方的积分）和障碍代价（工作空间代价场的线积分）之间权衡的泛函<sup>[3](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)</sup> |
| 关键性质 | 通过协变泛函梯度，对轨迹的重参数化具有不变性<sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup> |
| 输入要求 | 可以从一条不可行的、发生碰撞的轨迹出发，收敛到一条低代价的无碰撞轨迹；不需要无碰撞初始化<sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup><sup> • </sup><sup>[4](https://www.nathanratliff.com/thesis-research/chomp)</sup> |
| 逃离局部极小值 | 哈密顿蒙特卡洛扰动从高代价局部极小值处重新开始下降，并提供概率完备性<sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup> |
| 软件 | 以 MoveIt 和 MoveIt 2 中的 `chomp_motion_planner` / `moveit_planners_chomp` 包形式分发<sup>[5](https://index.ros.org/p/chomp_motion_planner/)</sup> |

## 优化问题

CHOMP 将轨迹视为一个函数 \( \xi : [0,1] \to \mathcal{Q} \)，将路径参数映射到机器人构型，并将目标定义为轨迹[希尔伯特空间](https://www.edgepedia.org/zh/hilbert-space)上的一个泛函：<sup>[3](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)</sup>

\[ \mathcal{U}[\xi] = \mathcal{F}_{\mathrm{obs}}[\xi] + \mathcal{F}_{\mathrm{smooth}}[\xi]. \]

平滑项使用路径切向量范数平方的积分，

\[ \mathcal{F}_{\mathrm{smooth}}[\xi] = \frac{1}{2}\int_0^1 \left\| \frac{d}{d\tau}\xi(\tau) \right\|^2 d\tau, \]

它将路径拉向直线，并且在广义表述中支配沿路径的时间分配。<sup>[3](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)</sup><sup> • </sup><sup>[6](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)</sup> 障碍项是标量工作空间代价场 \( c \) 的线积分，该代价场随与最近障碍物距离的减小而增大，通过正向运动学在机器人本体上的点处求值，并按工作空间速度的范数缩放：<sup>[3](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)</sup>

\[ \mathcal{F}_{\mathrm{obs}}[\xi] = \int_0^1 \int_{\mathcal{B}} c\bigl(x(\xi(\tau), u)\bigr) \left\| \frac{d}{d\tau} x(\xi(\tau), u) \right\| \, du \, d\tau. \]

这两项是互补的：障碍泛函支配路径的形状，平滑泛函支配时间分配。<sup>[6](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)</sup> 在机器人工作空间（通常为二到三维）而非高维构型空间中计算代价场，使得障碍代价可以利用欧几里得距离变换高效求值，从而支持复杂场景中的在线重规划。<sup>[6](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)</sup> 实现中使用符号距离场来表示环境障碍物。<sup>[7](https://github.com/personalrobotics/or_cdchomp)</sup>

## 协变梯度下降

在每次迭代中，CHOMP 最小化目标在当前路径附近的正则化一阶泰勒展开，得到更新规则<sup>[3](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)</sup>

\[ \xi_{i+1} = \xi_i - \frac{1}{\eta} A^{-1} \bar{\nabla} \mathcal{U}[\xi_i], \]

其中 \( \bar{\nabla}\mathcal{U} \) 是泛函梯度，\( A \) 是轨迹空间上的度量，\( \eta \) 是步长。轨迹空间的度量结构正是使梯度对重参数化具有协变性的原因：无论轨迹如何参数化，算法行为都相同，作者将此视为该方法的核心原则，因为轨迹是一个独立于其参数化的几何对象。<sup>[6](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)</sup> 在实践中，逆度量将局部障碍梯度分配到相邻路点上，使形状变化保持平滑。<sup>[8](https://mohammadijoo.github.io/CaaT_Academy/Lectures/Advanced_Robotics_Course/Chapter04/Lesson2.html)</sup>

相对于早期的路径优化策略，CHOMP 的一个显著特点是它不要求输入路径无碰撞。给定一条不可行的朴素轨迹，例如起点和终点之间的直线插值，它会响应周围环境将轨迹拉出碰撞，同时优化关节速度和加速度等动力学量。这使得 CHOMP 可以作为独立的运动规划器使用，而不仅仅是采样规划器路径的后处理器。<sup>[2](https://ieeexplore.ieee.org/abstract/document/5152817/)</sup><sup> • </sup><sup>[4](https://www.nathanratliff.com/thesis-research/chomp)</sup>

## 局部极小值与哈密顿蒙特卡洛

与其他非凸目标上的梯度方法一样，泛函梯度下降会收敛到局部极小值。2013 年的期刊版加入了[哈密顿蒙特卡洛](https://www.edgepedia.org/zh/hamiltonian-monte-carlo)（HMC），这是一种[马尔可夫链蒙特卡洛](https://www.edgepedia.org/zh/markov-chain-monte-carlo)方法，通过添加动量项将轨迹扰动出当前的吸引域，重新开始下降。作者使用 HMC 既是为了缓解收敛到高代价局部极小值的问题，也是为了提供轨迹分布上的采样过程，从而赋予规划器概率完备性。HMC 本身也被做成参数化不变的，与框架的其余部分保持一致。<sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup><sup> • </sup><sup>[6](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)</sup> 2013 年的论文还表明 CHOMP 可以遵守沿轨迹的硬约束，并报告了在 7 自由度机械臂和粗糙地形四足机器人上的操作与运动任务实验，运行平台包括 Willow Garage PR2、CMU ARM-S、LittleDog 和 HERB。<sup>[1](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)</sup><sup> • </sup><sup>[6](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)</sup>

## 与其他规划器的关系

CHOMP 属于一类轨迹优化规划器，该类还包括 STOMP 和 TrajOpt，三者经常被比较。STOMP（Stochastic Trajectory Optimization for Motion Planning，运动规划的随机轨迹优化）由 Kalakrishnan 及其同事开发，用噪声轨迹的随机采样代替梯度下降，不需要代价梯度；其随机性质使其能够逃离 CHOMP 等基于梯度的优化器可能陷入的局部极小值，并且可以处理 CHOMP 无法处理的非平滑代价。<sup>[9](https://is.mpg.de/publications/kalakrishnan_raiic_2011)</sup><sup> • </sup><sup>[10](https://deepblue.lib.umich.edu/bitstream/2027.42/194610/1/mamantov_1.pdf)</sup> TrajOpt 使用序列凸优化并显式强制执行关节限位等硬约束，CHOMP 缺乏这一能力，这正是 TrajOpt 的设计动机。<sup>[11](https://www.mdpi.com/2076-3417/16/17/8370)</sup> 一份比较综述表将 CHOMP 描述为需要梯度、易受局部极小值影响、可扩展到中等自由度，并以平滑更新为其关键优势。<sup>[12](https://embodied-ai-hku.github.io/DATA8010/slides/Lecture4.pdf)</sup>

基准测试结果因环境而异。在一项研究中，针对机械臂穿越交错静态障碍物的场景，每种算法进行 300 次试验，CHOMP 在 300 次运行中有 217 次生成了无碰撞轨迹（27% 的失败率归因于梯度下降陷入代价函数的局部极小值），总优化时间约 5.574 秒，而 TrajOpt 为 300 次中的 249 次，约 1.942 秒。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC9141506/)</sup> 一项更近期的机械臂基准报告称 CHOMP 的成功率为 63%，STOMP 为 68%，更新的 PISTO 方法为 89%。<sup>[14](https://arxiv.org/abs/2605.07215)</sup> 由于 CHOMP 使用从起点到终点的直线进行初始化而不考虑障碍物，其性能在很大程度上取决于参数调优；MoveIt 的文档指出，默认参数在无障碍环境中表现良好，但在杂乱环境中很可能导致 CHOMP 陷入局部极小值。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC9141506/)</sup><sup> • </sup><sup>[15](https://moveit.picknik.ai/humble/doc/how_to_guides/chomp_planner/chomp_planner_tutorial.html)</sup>

## 在 MoveIt 中的实际使用

CHOMP 作为规划插件随 MoveIt 和 MoveIt 2 框架一起发布，与 [OMPL](https://www.edgepedia.org/zh/ompl)、STOMP 和 Pilz Industrial Motion Planner 并列。<sup>[5](https://index.ros.org/p/chomp_motion_planner/)</sup><sup> • </sup><sup>[16](https://moveit.picknik.ai/main/doc/examples/motion_planning_python_api/motion_planning_python_api_tutorial.html)</sup> 其行为通过 `chomp_planning.yaml` 文件配置，参数包括 `planning_time_limit`、`max_iterations`、`max_iterations_after_collision_free`、`smoothness_cost_weight`、`obstacle_cost_weight`（其中 0.0 忽略障碍物，1.0 将障碍物视为硬约束）、`learning_rate`、`ridge_factor`（添加到二次代价矩阵对角线上的噪声，以平滑性换取避障能力）、`collision_clearance`、`collision_threshold` 以及 `use_stochastic_descent`（每步更新一个随机轨迹点以加快迭代）。<sup>[15](https://moveit.picknik.ai/humble/doc/how_to_guides/chomp_planner/chomp_planner_tutorial.html)</sup>

轨迹初始化本身也是一个参数：`quintic-spline`、`linear` 和 `cubic` 在起点和终点状态之间插值，而 `fillTrajectory` 用来自其他规划器（如 OMPL）的路径为 CHOMP 提供初始种子，将基于采样的全局搜索与基于梯度的细化相结合。<sup>[15](https://moveit.picknik.ai/humble/doc/how_to_guides/chomp_planner/chomp_planner_tutorial.html)</sup> MATLAB 的 Robotics System Toolbox 同样提供 CHOMP 作为机械臂拾放工作流的规划器。<sup>[17](https://www.mathworks.com/help/robotics/ug/pick-and-place-using-chomp-for-manipulators.html)</sup>

## 扩展与影响

T-CHOMP 将泛函梯度框架扩展到时空优化，联合优化路径 \( \xi \) 和时间轨迹 \( t \)；当路径逃离障碍物的影响范围时，耦合消失，方法退化为标准 CHOMP。<sup>[3](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)</sup> 在预计算符号距离场上使用铰链损失函数处理静态障碍物的思想由 CHOMP 引入，已被带入后来的连续时间和因子图运动规划表述中，包括自动驾驶规划器。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC13611647/)</sup> CHOMP 基于激活距离的碰撞代价也为后来 cuRobo 等优化库的碰撞代价设计提供了参考。<sup>[19](https://curobo.org/get_started/2c_world_collision.html)</sup>

## References

1. [Zucker, Ratliff, Dragan, Pivtoraiko, Klingensmith, Dellin, Bagnell, Srinivasa (2013). CHOMP: Covariant Hamiltonian Optimization for Motion Planning. IJRR 32(9), 1164–1193. CMU Robotics Institute.](https://publications.ri.cmu.edu/chomp-covariant-hamiltonian-optimization-for-motion-planning)
2. [Ratliff, Zucker, Bagnell, Srinivasa (2009). CHOMP: Gradient optimization techniques for efficient motion planning. ICRA 2009, IEEE Xplore.](https://ieeexplore.ieee.org/abstract/document/5152817/)
3. [Mukadam, Dong, Genova, Forster, Boots, Dellaert, Fox (2014). Space-Time Functional Gradient Optimization for Motion Planning (T-CHOMP). ICRA 2014.](https://homes.cs.washington.edu/~bboots/files/T-CHOMP-icra-2014.pdf)
4. [Ratliff, Zucker, Bagnell, Srinivasa. CHOMP: Optimized Robotics. Nathan Ratliff thesis research page.](https://www.nathanratliff.com/thesis-research/chomp)
5. [chomp_motion_planner, ROS Package Index.](https://index.ros.org/p/chomp_motion_planner/)
6. [Zucker et al. CHOMP: Covariant Hamiltonian Optimization for Motion Planning (IJRR preprint PDF). CMU.](https://www.ri.cmu.edu/pub_files/2013/5/CHOMP_IJRR.pdf)
7. [personalrobotics/or_cdchomp: OpenRAVE plugin implementing the CHOMP trajectory optimizer. GitHub.](https://github.com/personalrobotics/or_cdchomp)
8. [Mohammadi. Chapter 4, Lesson 2: CHOMP / STOMP Concepts. Advanced Robotics course notes.](https://mohammadijoo.github.io/CaaT_Academy/Lectures/Advanced_Robotics_Course/Chapter04/Lesson2.html)
9. [Kalakrishnan et al. STOMP: Stochastic trajectory optimization for motion planning. MPI-IS publication page.](https://is.mpg.de/publications/kalakrishnan_raiic_2011)
10. [Mamantov. Enabling Robot Arm Motion with Multiple Objectives Through Agent-Based Optimization. University of Michigan.](https://deepblue.lib.umich.edu/bitstream/2027.42/194610/1/mamantov_1.pdf)
11. [Empirical Evaluation of CHOMP for Autonomous Pick-and-Place Manipulation Using a UR5e Robot Arm. Applied Sciences (MDPI), 2025.](https://www.mdpi.com/2076-3417/16/17/8370)
12. [Motion Planning and Task Planning lecture slides, DATA8010, HKU.](https://embodied-ai-hku.github.io/DATA8010/slides/Lecture4.pdf)
13. [An Efficient Online Trajectory Generation Method Based on Kinodynamic Path Search and Trajectory Optimization. PMC, 2022.](https://pmc.ncbi.nlm.nih.gov/articles/PMC9141506/)
14. [Yu, Chang, Chen. PISTO: Proximal Inference for Stochastic Trajectory Optimization. arXiv.](https://arxiv.org/abs/2605.07215)
15. [Using CHOMP Planner, MoveIt Documentation (Humble).](https://moveit.picknik.ai/humble/doc/how_to_guides/chomp_planner/chomp_planner_tutorial.html)
16. [Motion Planning Python API, MoveIt Documentation (Rolling).](https://moveit.picknik.ai/main/doc/examples/motion_planning_python_api/motion_planning_python_api_tutorial.html)
17. [Pick-And-Place Workflow Using CHOMP for Manipulators, MATLAB & Simulink, MathWorks.](https://www.mathworks.com/help/robotics/ug/pick-and-place-using-chomp-for-manipulators.html)
18. [Unified Semantic Reasoning and Planning for Autonomous Driving. PMC, 2025.](https://pmc.ncbi.nlm.nih.gov/articles/PMC13611647/)
19. [Collision World Representation, cuRobo documentation.](https://curobo.org/get_started/2c_world_collision.html)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Mechanical foundations of robotics › Motion and trajectory planning

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/chomp-trajectory-optimization

English original: https://www.edgepedia.org/chomp-trajectory-optimization
