# DART 仿真器

DART（Dynamic Animation and Robotics Toolkit，动态动画与机器人学工具包）是一个开源 C++17 物理仿真器，配有名为 dartpy 的 Python 绑定，用于机器人学与计算机动画中铰接刚体和软体的运动学、动力学及接触仿真。<sup>[1](https://github.com/dartsim/dart)</sup> 它由佐治亚理工学院开发：多体动力学仿真器出自图形实验室，一套运动规划算法出自人形机器人实验室。<sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup>

| 关键事实 | 详情 |
|---|---|
| 全名 | 动态动画与机器人学工具包；开源 C++17 库，带 Python 绑定（dartpy）<sup>[1](https://github.com/dartsim/dart)</sup> |
| 动力学表述 | 广义坐标下的铰接刚体，用 Featherstone 铰接体算法计算<sup>[1](https://github.com/dartsim/dart)</sup> |
| 接触处理 | 隐式时间步进，基于速度的 LCP（线性互补问题），保证不穿透、方向性摩擦及近似库仑摩擦锥条件，由 Lemke 算法求解<sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup> |
| 碰撞检测 | 默认使用 FCL 包，同时支持 Bullet、ODE 及 DART 自带的检测器<sup>[1](https://github.com/dartsim/dart)</sup><sup> • </sup><sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup> |
| 模型格式 | URDF、SDF、SKEL 及 MJCF（实验性）解析器<sup>[1](https://github.com/dartsim/dart)</sup> |
| 许可与使用 | BSD 2-Clause；通过 gz-physics 驱动 Gazebo，已被 370 余篇研究论文引用<sup>[1](https://github.com/dartsim/dart)</sup><sup> • </sup><sup>[3](https://dart.readthedocs.io/en/latest/community/who_uses_dart.html)</sup> |

## 动力学方法

DART 以广义坐标表示铰接刚体系统，并计算由[达朗贝尔原理](https://www.edgepedia.org/zh/dalemberts-principle)导出的拉格朗日方程来描述运动动力学。<sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup> 当前实现采用 Featherstone 铰接体算法，项目称其使仿真准确而稳定。<sup>[1](https://github.com/dartsim/dart)</sup>

与将仿真器视为黑箱的物理引擎不同，DART 允许完全访问内部运动学与动力学量，包括质量矩阵、科里奥利力与离心力、变换矩阵及其导数，以及针对任意体点和坐标框架高效计算的雅可比矩阵。<sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup> 这种开放性面向运动控制算法的开发，因为控制器需要直接使用这些量。<sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup>

DART 支持多种关节类型，包括球窝关节、万向关节、铰链关节和平移关节，以及任意网格，并提供一阶和四阶龙格-库塔显式积分方法。<sup>[2](https://dartsim.github.io/dart/v6.11.1/)</sup>

## 接触与碰撞检测

当两个形状重叠时，DART 生成带位置和法线的接触点，求解防止互穿并施加摩擦的接触冲量，然后对结果进行积分；整个流程在世界对象的 `step()` 调用内运行。<sup>[4](https://dart.readthedocs.io/en/latest/user_guide/interaction/collisions_and_contacts.html)</sup> 接触与约束在每个时间步以冲量形式在速度层面强制执行，文档称其总体稳健，但对时间步长和模型细节敏感。<sup>[5](https://dart.readthedocs.io/en/latest/topics/simulation-stability.html)</sup>

每个物体的表面材质决定响应方式：摩擦抵抗滑动，恢复系数控制弹跳，DART 在接触中合并两个物体的材质以决定净行为。<sup>[4](https://dart.readthedocs.io/en/latest/user_guide/interaction/collisions_and_contacts.html)</sup> [碰撞检测](https://www.edgepedia.org/zh/collision-detection)也可通过 `world.collide()` 按需运行，它只报告接触而不推进时间，这种查询模式适用于诊断、传感器和运动规划检查。<sup>[4](https://dart.readthedocs.io/en/latest/user_guide/interaction/collisions_and_contacts.html)</sup>

## 稳定性实践

项目的稳定性检查清单将大多数“看起来不对”的仿真视为数值稳定性问题，典型症状包括：速度趋于无穷通常表明时间步长相对于增益或弹簧的刚度太大；接触堆叠中的高频抖动指向时间步长、接触或阻尼问题；缓慢漂移则来自离散化误差或接触与约束注入的能量。<sup>[5](https://dart.readthedocs.io/en/latest/topics/simulation-stability.html)</sup> 建议的首选修复手段依次为：减小时间步长、降低刚度、增加阻尼、对指令或力进行钳制。<sup>[5](https://dart.readthedocs.io/en/latest/topics/simulation-stability.html)</sup> 对于高刚度关节，文档建议直接通过关节弹簧和阻尼系数建模刚度，这些项以隐式方式处理，相比显式高增益反馈，能在更大的时间步长下保持稳定。<sup>[5](https://dart.readthedocs.io/en/latest/topics/simulation-stability.html)</sup>

## 生态系统与使用

DART 用于机器人学与[动画](https://www.edgepedia.org/zh/animation)研究，并通过 gz-physics 驱动 Gazebo 仿真器。<sup>[1](https://github.com/dartsim/dart)</sup> 它已被机器人学、生物力学、计算机图形学、动画和机器学习领域的 370 余篇研究论文引用。<sup>[3](https://dart.readthedocs.io/en/latest/community/who_uses_dart.html)</sup> 诸如 robot_dart 之类的封装项目提供轻量接口，用于快速灵活的机器人仿真。<sup>[3](https://dart.readthedocs.io/en/latest/community/who_uses_dart.html)</sup> 示例库包含 Atlas 人形机器人由 Simbicon 控制的演示，Simbicon 是一个简单的双足运动控制器，具有无控制、短步幅和正常步幅三种行走模式。<sup>[6](https://dart.readthedocs.io/en/latest/gallery.html)</sup>

可通过 pip、conda-forge 安装，C++ 用户还可通过系统包管理器安装，项目在 GitHub 上以 BSD 2-Clause 许可证公开开发。<sup>[1](https://github.com/dartsim/dart)</sup>

## 与其他引擎的比较

DART 经常与其他机器人物理引擎进行基准测试。[苏黎世联邦理工学院](https://www.edgepedia.org/zh/eth-zurich)机器人系统实验室的 SimBenchmark 项目在滚动、弹跳、接触、能量和铰接机器人测试中比较了 RaiSim、Bullet、ODE、MuJoCo 和 DART。<sup>[7](https://github.com/leggedrobotics/SimBenchmark)</sup> 在一篇总结这些结果的学位论文中，ODE 和 DART 在滚动测试的某些条件下未能模拟滑移，因此两者在该项均获负评。<sup>[8](https://repository.tugraz.at/publications/marc21/9yba9-avz88/files/89290.pdf?download=1)</sup> 根据已发表研究汇编的对比表将 DART 评为线性稳定性、角稳定性和准确性良好，摩擦最佳，迁移性中等，同时指出所依据的跨引擎准确性比较来自 2023 年。<sup>[9](https://github.com/robomotic/sim-benchmarks/blob/main/COMPARISONS.md)</sup> 卡内基梅隆大学一项关于 Bullet、DART、MuJoCo 和 ODE 接触仿真可预测性的研究发现，初始条件的微小变化有时会引发不同的接触事件序列和截然不同的结果，且参数设置影响极大，提示准确性与可预测性之间存在权衡。<sup>[10](https://www.cs.cmu.edu/~sejoonc/papers/PredictablePhysics.html)</sup>

## 开发状态

项目维护 DART 6 LTS 线与 DART 7 开发分支并行；DART 6 LTS 线（release-6.19）的补丁版本于 2026 年中关闭，包含缺陷修复和对经典 DART 6 API 的鲁棒性加固。<sup>[11](https://github.com/dartsim/dart/milestone/101?closed=1)</sup> DART 7 计划与 DART 6 彻底断代，以 DART 6 作为兼容线，其针对固定 gz-physics canary 的兼容窗口从 DART 6.10 延续到 7.0。<sup>[12](https://github.com/dartsim/dart/blob/main/docs/onboarding/release-roadmap.md)</sup> 一项活跃的开发计划正在添加可选的刚体增量势接触（IPC）阶段，包括曲线轨迹连续碰撞检测、基于障碍函数的接触目标、投影牛顿求解和滞后库仑摩擦，只有在论文测试用例、基准和可视化示例全部覆盖后才宣称方法完全对齐。<sup>[13](https://github.com/dartsim/dart/blob/main/docs/plans/082-rigid-implicit-barrier-contact.md)</sup>

## References

1. [DART: Dynamic Animation and Robotics Toolkit, GitHub repository and README](https://github.com/dartsim/dart)
2. [DART 6.11.1 Introduction, dartsim.github.io](https://dartsim.github.io/dart/v6.11.1/)
3. [Who Uses DART?, DART documentation](https://dart.readthedocs.io/en/latest/community/who_uses_dart.html)
4. [Collisions and contacts, DART User Guide](https://dart.readthedocs.io/en/latest/user_guide/interaction/collisions_and_contacts.html)
5. [Simulation Stability Checklist, DART documentation](https://dart.readthedocs.io/en/latest/topics/simulation-stability.html)
6. [Gallery, DART documentation](https://dart.readthedocs.io/en/latest/gallery.html)
7. [SimBenchmark: Physics engine benchmark for robotics applications, leggedrobotics GitHub](https://github.com/leggedrobotics/SimBenchmark)
8. [Thesis summary of SimBenchmark results, Graz University of Technology repository](https://repository.tugraz.at/publications/marc21/9yba9-avz88/files/89290.pdf?download=1)
9. [sim-benchmarks COMPARISONS.md, robomotic GitHub](https://github.com/robomotic/sim-benchmarks/blob/main/COMPARISONS.md)
10. [Predictable Behavior During Contact Simulation: A Comparison of Selected Physics Engines, Chung and Pollard, CMU](https://www.cs.cmu.edu/~sejoonc/papers/PredictablePhysics.html)
11. [DART 6 LTS release-6.19 milestone, GitHub](https://github.com/dartsim/dart/milestone/101?closed=1)
12. [Release roadmap, dartsim/dart docs](https://github.com/dartsim/dart/blob/main/docs/onboarding/release-roadmap.md)
13. [PLAN-082: Rigid implicit barrier contact, dartsim/dart docs](https://github.com/dartsim/dart/blob/main/docs/plans/082-rigid-implicit-barrier-contact.md)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Humanoid robots › Learning-based locomotion and skills

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/dart-simulator

English original: https://www.edgepedia.org/dart-simulator
