# STOMP轨迹优化

STOMP（Stochastic Trajectory Optimization for Motion Planning，运动规划随机轨迹优化）是一种无导数、基于采样的机器人运动规划方法。它围绕当前参考轨迹生成随机加噪的变体，再按代价加权把它们组合成一条代价更低的新轨迹，如此迭代地改进轨迹。该方法由 Mrinal Kalakrishnan、Sachin Chitta、Evangelos Theodorou、Peter Pastor 和 Stefan Schaal 在2011年IEEE国际机器人与自动化会议（ICRA）上提出。<sup>[1](https://cir.nii.ac.jp/crid/1361699993733255552)</sup>

| 关键事实 | 详情 |
|---|---|
| 原始发表 | Kalakrishnan、Chitta、Theodorou、Pastor 和 Schaal，ICRA 2011，上海，第4569–4574页，DOI 10.1109/ICRA.2011.5980280<sup>[1](https://cir.nii.ac.jp/crid/1361699993733255552)</sup> |
| 核心机制 | 围绕一条初始的、可能不可行的参考轨迹采样加噪轨迹；按路点计算代价；更新是噪声的代价加权组合<sup>[2](https://ieeexplore.ieee.org/document/5980280)</sup> |
| 梯度使用 | 无需梯度，因此可以纳入没有导数的代价（约束、电机力矩）<sup>[2](https://ieeexplore.ieee.org/document/5980280)</sup> |
| 原始评估 | 在 Willow Garage PR2 上的仿真货架规划：210个无约束规划全部成功（210/210），平均0.88秒，而 CHOMP 为149/210<sup>[3](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)</sup> |
| 局部极小值 | 随机噪声使 STOMP 能够避开困住 CHOMP 等基于梯度的规划器的局部极小值<sup>[4](https://moveit.picknik.ai/main/doc/how_to_guides/stomp_planner/stomp_planner.html)</sup> |
| 软件 | 在 MoveIt 和 MoveIt 2 中作为规划器插件和平滑适配器提供（stomp_moveit，BSD-3-Clause）<sup>[4](https://moveit.picknik.ai/main/doc/how_to_guides/stomp_planner/stomp_planner.html)</sup><sup> • </sup><sup>[5](https://github.com/moveit/stomp_moveit)</sup> |

## 算法工作原理

STOMP 把轨迹视为由路点构成的离散向量，起点和终点保持固定。每次迭代通过对当前解施加扰动，抽取一组加噪轨迹。噪声从零均值正态分布中采样，其协方差为控制代价矩阵的逆，因此扰动具有较低的控制代价，在物理系统上仍然可执行，也不会把轨迹拉离起点或终点。<sup>[3](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)</sup>

每条加噪轨迹由一个针对具体问题的代价函数评估，涵盖障碍物惩罚、约束违反、平滑性以及力矩等控制属性。每个时间步的代价通过指数化转换为概率，其中有一个敏感度参数，可以自动调节以区分各采样代价；最初的评估使用常数10。每个时间步的更新，是各采样轨迹上噪声的概率加权凸组合，再用由控制代价基导出的矩阵进行平滑，使更新后的轨迹保持平滑，并停留在已经探索过的范围内。<sup>[3](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)</sup>

**为什么不需要步长。** 因为新轨迹是若干条已评估过代价的轨迹的凸组合，所以不会像含噪梯度评估那样跳入状态空间中未探索的区域。作者把这一更新类比为期望最大化算法：更新采样分布的均值，使其与上一轮迭代的代价分布相匹配；在稠密采样下，这保证平均代价非递增。唯一需要设定的参数是探索噪声的幅度，而梯度方法则需要一个步长参数。<sup>[3](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)</sup>

## 原始评估

2011年的论文在仿真中以及 PR2 移动操作机器人上演示了 STOMP，涵盖无约束和有约束任务，包括末端执行器姿态约束，例如在整个轨迹过程中保持抓取物体水平。<sup>[2](https://ieeexplore.ieee.org/document/5980280)</sup><sup> • </sup><sup>[3](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)</sup>

在仿真的货架环境中，STOMP 在210个无约束规划问题中全部成功，平均规划时间0.88 ± 0.40秒，平均52.1 ± 26.6次迭代收敛。CHOMP 在210个问题中成功149个，平均0.71 ± 0.25秒，167.1 ± 113.8次迭代。对于有约束问题，STOMP 在210个中成功196个，平均1.86 ± 1.25秒，110.1 ± 78.0次迭代。作者指出，STOMP 找到的是局部最优轨迹，其表现取决于初始轨迹，因此不能指望它在合理时间内求解 alpha谜题之类的经典基准问题。<sup>[3](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)</sup>

## STOMP 与 CHOMP、OMPL 的比较

**CHOMP**（Covariant Hamiltonian Optimization for Motion Planning，运动规划协变哈密顿优化）用协变泛函梯度下降优化一条初始的朴素轨迹，要求代价可微，通常由符号距离场计算。**OMPL** 是一个基于采样的规划器库，依赖随机采样与图搜索，具有概率完备性。<sup>[4](https://moveit.picknik.ai/main/doc/how_to_guides/stomp_planner/stomp_planner.html)</sup>

MoveIt 文档总结了这些取舍。STOMP 因其随机性可以避开局部极小值，而 CHOMP 容易陷入其中；根据 STOMP 和 CHOMP 的论文，STOMP 在多数情况下表现更好。STOMP 和 CHOMP 的规划时间相当，不过 CHOMP 需要更多迭代才能成功，因为 STOMP 每次迭代需要多次代价评估，但相比梯度更新能迈出更大、更稳定的步子。CHOMP 通常比 STOMP 需要更多参数调优，而 OMPL 规划器总体上更快，代价是路径长度或平滑性有所损失。<sup>[4](https://moveit.picknik.ai/main/doc/how_to_guides/stomp_planner/stomp_planner.html)</sup>

实际后果是代价函数的灵活性。STOMP 接受黑箱代价，包括二值碰撞检测、学习得到的代价，或来自感知流水线的不可微占据栅格，这使它适合代价地形不连续、梯度未定义或具有误导性的杂乱工作单元。<sup>[6](https://inferensys.com/differences/vla-foundation-models-for-industrial-robotics/task-and-motion-planning-integrations/stomp-vs-chomp-trajectory-optimization)</sup> 2024年一篇关于动态环境中机械臂规划的综述指出了另一面：STOMP 的随机更新需要更多迭代（该研究中平均70.0次）才能找到收敛路径，这使其成功率低于收敛更快的梯度方法。<sup>[7](https://onlinelibrary.wiley.com/doi/10.1155/2024/5969512)</sup>

## 软件实现

STOMP 作为规划器插件和平滑适配器随 MoveIt 发布。MoveIt 2 中的实现（stomp_moveit）是全新实现，而非 ROS 1 stomp_ros 包的迁移，规划器库本身经过重写；它以 BSD-3-Clause 许可证分发，开发在 MoveIt 2 仓库中持续进行。<sup>[5](https://github.com/moveit/stomp_moveit)</sup><sup> • </sup><sup>[8](https://moveit.ai/moveit%202/ros/2023/05/19/optimization-based-planning-with-stomp.html)</sup>

配置通过 stomp_planning.yaml 文件完成。文档记载的默认值为：60个时间步、40次迭代、每次迭代30条采样轨迹（包含结转采样轨迹时最多30条）、指数化代价敏感度0.5、控制代价权重0.1，以及相邻路点之间假定间隔0.1秒。在更复杂的环境中，增加时间步或采样轨迹数会有帮助，但可能需要更长的允许规划时间。<sup>[4](https://moveit.picknik.ai/main/doc/how_to_guides/stomp_planner/stomp_planner.html)</sup> MoveIt 流水线还把 STOMP 作为平滑适配器（STOMPSmoothingAdapter）暴露出来，可对 OMPL 规划器预先求解的可行路径做后处理；2023年的版本增加了对带路径约束规划的完整支持。<sup>[9](https://link.springer.com/article/10.1007/s00170-021-07985-5)</sup><sup> • </sup><sup>[8](https://moveit.ai/moveit%202/ros/2023/05/19/optimization-based-planning-with-stomp.html)</sup>

在2025年一项针对 [ROS 2](https://www.edgepedia.org/zh/ros-2) 和 MoveIt 2 下六自由度机械臂上 STOMP、RRT-Connect 与 Pilz 工业规划器的对比评估中，STOMP 生成的轨迹最平滑，加加速度指标为0.84 m/s³，代价是规划时间最长，为842毫秒，因此适合能够容忍规划延迟的精密操作任务。<sup>[10](https://admin.mantechpublications.com/index.php/IJoRAS/article/view/4050)</sup>

## 扩展与后续评估

**GSTOMP**（Guided Stochastic Optimization for Motion Planning，引导式运动规划随机优化，2019）用任务信息引导的初始化扩展了 STOMP：以从示教中学习得到的动态运动基元编码的引导轨迹取代默认初始轨迹，并新增一项代价，惩罚在笛卡尔空间中偏离引导轨迹，同时保留避障与关节限位约束。在两台真实机械臂上的货架取物和橱柜任务中，GSTOMP 相比纯 STOMP 和单纯示教学习提高了任务成功率；例如在七自由度下，GSTOMP 完成了40%的任务，而其他方法接近0%。<sup>[11](https://www.frontiersin.org/journals/robotics-and-ai/articles/10.3389/frobt.2019.00105/full)</sup>

后续工作也厘清了 STOMP 在数学上究竟在做什么。2026年的一项分析表明，STOMP 隐式地最小化相对于轨迹上的[玻尔兹曼分布](https://www.edgepedia.org/zh/boltzmann-distribution)的 KL 散度，揭示出其更新背后的变分推断结构，并基于这一洞见提出了 PISTO，用相邻高斯提议分布之间的 KL 正则化来稳定更新。在机械臂运动规划基准上，PISTO 达到89%的成功率，而 STOMP 为68%、CHOMP 为63%，同时生成的路径更短、更平滑，速度是竞争性随机方法的两倍。<sup>[12](https://arxiv.org/abs/2605.07215)</sup> 其他随机类衍生方法还包括 VP-STO，一种基于途经点的形式，用于模型预测控制中的反应式、时间最优重规划。<sup>[13](https://arxiv.org/abs/2210.04067)</sup>

## References

1. [Kalakrishnan, Chitta, Theodorou, Pastor, Schaal (2011). STOMP: Stochastic trajectory optimization for motion planning. ICRA 2011, 4569–4574. CiNii Research record.](https://cir.nii.ac.jp/crid/1361699993733255552)
2. [STOMP: Stochastic trajectory optimization for motion planning, IEEE Xplore.](https://ieeexplore.ieee.org/document/5980280)
3. [STOMP: Stochastic Trajectory Optimization for Motion Planning (full paper PDF, ResearchGate).](https://www.researchgate.net/publication/221078155_STOMP_Stochastic_trajectory_optimization_for_motion_planning)
4. [STOMP Motion Planner, MoveIt Documentation (Rolling).](https://moveit.picknik.ai/main/doc/how_to_guides/stomp_planner/stomp_planner.html)
5. [moveit/stomp_moveit: STOMP support for MoveIt, ROS 2, GitHub.](https://github.com/moveit/stomp_moveit)
6. [STOMP vs CHOMP: Trajectory Optimization for Industrial Robotics, Inference Systems.](https://inferensys.com/differences/vla-foundation-models-for-industrial-robotics/task-and-motion-planning-integrations/stomp-vs-chomp-trajectory-optimization)
7. [Liu et al. (2024). Review on Motion Planning of Robotic Manipulator in Dynamic Environments. Journal of Sensors.](https://onlinelibrary.wiley.com/doi/10.1155/2024/5969512)
8. [Optimization-based planning with STOMP, MoveIt blog (19 May 2023).](https://moveit.ai/moveit%202/ros/2023/05/19/optimization-based-planning-with-stomp.html)
9. [Benchmarking and optimization of robot motion planning with motion planning pipeline. The International Journal of Advanced Manufacturing Technology (2021).](https://link.springer.com/article/10.1007/s00170-021-07985-5)
10. [Sharma et al. (2025). Kinematic Modelling and Trajectory Planning for a 6-DOF Robotic Arm Using ROS 2 Humble and MoveIt 2. International Journal of Robotics and Autonomous Systems.](https://admin.mantechpublications.com/index.php/IJoRAS/article/view/4050)
11. [Magyar et al. (2019). Guided Stochastic Optimization for Motion Planning. Frontiers in Robotics and AI, 6:105.](https://www.frontiersin.org/journals/robotics-and-ai/articles/10.3389/frobt.2019.00105/full)
12. [Yu, Chang, Chen (2026). PISTO: Proximal Inference for Stochastic Trajectory Optimization. arXiv:2605.07215.](https://arxiv.org/abs/2605.07215)
13. [Jankowski et al. (2022). VP-STO: Via-point-based Stochastic Trajectory Optimization for Reactive Robot Behavior. arXiv:2210.04067.](https://arxiv.org/abs/2210.04067)

---
*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/stomp-trajectory-optimization

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