# AGX Dynamics

**AGX Dynamics** 是一款商业软件开发工具包（SDK），用于对含接触与摩擦的机械系统进行建模与仿真，由瑞典于默奥（Umeå）的 Algoryx Simulation AB 公司开发。它计算三维多体系统在碰撞、接触和摩擦作用下的运动方程，并与液压、传动系、线缆、颗粒材料等其他物理域的组件紧密耦合。它既可作为分析与设计的工程工具，也可作为实时“物理引擎”用于交互式三维与虚拟现实应用、模拟器训练以及人工智能或机器学习环境。<sup>[1](https://www.algoryx.se/agx-dynamics/)</sup><sup> • </sup><sup>[2](https://www.algoryx.se/technology/)</sup>

| 关键事实 | 详情 |
|---|---|
| 开发商 | Algoryx Simulation AB，2007 年由于默奥大学（Umeå University）的四名研究人员创立；拥有近三十名员工，全球客户超过 100 家<sup>[3](https://www.algoryx.se/about/)</sup> |
| 核心方法 | 非光滑多体动力学：将碰撞、接触和干摩擦建模为硬不等式并隐式求解，采用固定时间步长和二阶精度积分<sup>[2](https://www.algoryx.se/technology/)</sup> |
| 求解器 | 带主元选取的直接块稀疏 LDLT 求解器可求解至机器精度；混合直接-迭代方案可扩展至非光滑离散元颗粒物质等大型系统<sup>[2](https://www.algoryx.se/technology/)</sup><sup> • </sup><sup>[4](https://link.springer.com/article/10.1186/s40323-021-00196-3)</sup> |
| 颗粒仿真 | AGX Granular 采用非光滑离散元方法（NDEM），使用六自由度球形颗粒、赫兹接触弹性、库仑摩擦和滚动阻力<sup>[5](https://www.algoryx.se/documentation/complete/agx/tags/latest/doc/UserManual/source/granular_body_system.html)</sup> |
| 平台与语言 | C++ SDK，提供 C# 和 Python 绑定，支持 Windows、Mac 和 Linux；提供 Unity 和 Unreal Engine 插件；支持 FMI 和 Simulink 导出<sup>[1](https://www.algoryx.se/agx-dynamics/)</sup> |
| 当前版本 | 2.42.2.1，发行于 Windows（VS2019/VS2022/VS2026）、Ubuntu 22/24/26 和 Mac x64/arm64<sup>[6](https://www.algoryx.se/download/?id=1887)</sup> |
| 商业模式 | 常以 OEM 产品形式销售，由客户在各自市场负责硬件和应用开发<sup>[3](https://www.algoryx.se/about/)</sup> |

## 技术方法

AGX Dynamics 建立在非光滑力学基础之上。碰撞、接触和静摩擦是不连续现象，AGX 用隐式求解的硬不等式对其建模，而非采用许多传统多体公式所依赖的连续性假设。建模基于解析系统动力学，时间步进遵循非光滑离散时间变分原理，从而实现稳定的二阶精度积分。刚体、液压管道与阀门、电动机、线缆和绳索均在同一框架中表示，因此各物理域通过边界条件耦合，而非通过松散的联合仿真耦合。<sup>[2](https://www.algoryx.se/technology/)</sup>

仿真以固定时间步长运行，这使得计算时间可预测，适用于从交互式虚拟环境到硬件在环测试的实时应用。由于积分稳定，步长可以较大，并可根据关注的时间尺度进行调整。求解器对关节奇异性和超定约束具有鲁棒性，可处理接近浮点运算极限的质量比，并支持任意刚度的松弛关节和柔性关节。<sup>[1](https://www.algoryx.se/agx-dynamics/)</sup><sup> • </sup><sup>[2](https://www.algoryx.se/technology/)</sup>

**求解器。** 直接求解器采用高性能稀疏分解器，对不等式使用直接主元选取方法，提供硬接触和真正的静摩擦，从而实现稳定抓取。基础物理模型中内置了少量柔顺性，并通过变分原理在时间上离散化，因此具有物理意义，可表示线性弹性；与惩罚模型不同，高刚度不会引入过度阻尼等异常现象。混合求解器以可配置的方式将直接法与迭代法结合，允许用户选择每个求解器处理哪些变量。例如，这使一台 10 吨重的轮式装载机能够碾过一堆每颗仅几克的颗粒。<sup>[2](https://www.algoryx.se/technology/)</sup>

**碰撞检测。** 几何计算内核根据物体的三维形状自动检测物体间的接触。几何体可以是无结构网格、长方体/球体/胶囊体/圆柱体等基本体、凸网格、高度场或复合体。由于网格计算开销大，AGX 会过滤和剔除冗余接触点，并且主要使用逐点接触，同时辅以一些考虑杨氏模量和体积模量的表面接触模型。<sup>[2](https://www.algoryx.se/technology/)</sup>

## 模块

AGX 模块为刚体之外的领域提供高层建模，为实现稳定性和速度而紧密耦合：<sup>[1](https://www.algoryx.se/agx-dynamics/)</sup>

- **AGX Cable** 将线缆、软管、绳索、短线缆和线束组件仿真为具有圆形截面的集中单元结构，可弯曲、拉伸和扭转，支持任意刚度、塑性变形、自接触，并可输出内部力。<sup>[1](https://www.algoryx.se/agx-dynamics/)</sup>
- **AGX Wire** 动态调整其分辨率，使其可用于极端张力场景和数公里线缆规模，如锚泊作业和系泊。<sup>[7](https://us.download.algoryx.se/AGXUnreal/documentation/current/wire.html)</sup><sup> • </sup><sup>[8](https://www.algoryx.se/maritime/)</sup>
- **AGX Granular** 实现 NDEM 颗粒体，与铰接多体系统进行双向交互；由此产生的大型接触系统采用带热启动的并行投影高斯-赛德尔求解器（PPGS）求解。<sup>[5](https://www.algoryx.se/documentation/complete/agx/tags/latest/doc/UserManual/source/granular_body_system.html)</sup>
- **agxTerrain** 将连续介质土壤力学与颗粒及刚体多体动力学相结合，当挖掘工具切入地面时，将固体地形单元转换为动态六自由度土壤颗粒；它为轮式装载机和挖掘机的土方作业仿真提供基础。<sup>[9](https://www.algoryx.se/documentation/complete/agx/tags/agx-2.34.0.0/UserManual/source/agxTerrain.html)</sup><sup> • </sup><sup>[4](https://link.springer.com/article/10.1186/s40323-021-00196-3)</sup>

大规模 NDEM 仿真可通过将迭代接触求解器卸载到支持 CUDA 的 GPU 来加速。GPU 计算以 32 位精度运行，铰链和移动关节等非接触迭代约束未在 GPU 上实现，且使用直接-迭代耦合时必须在 GPU 内存与系统内存之间复制数据，因此 GPU 卸载最适合纯接触的球形颗粒体仿真。<sup>[5](https://www.algoryx.se/documentation/complete/agx/tags/latest/doc/UserManual/source/granular_body_system.html)</sup>

## 接口与生态

C++ SDK 附带 C# 和 Python 绑定、用于快速建模和数据分析的 OpenSceneGraph 查看器，以及用于高端渲染交互式应用的 [Unity](https://www.edgepedia.org/zh/unity-game-engine) 和 [Unreal Engine](https://www.edgepedia.org/zh/unreal-engine) 插件。通过 FMI 标准（1.0 和 2.0 版本，含用于代数耦合的主步进器）以及作为 Matlab 和 Simulink 插件支持联合仿真和模型交换，并通过以 CAD 为中心的建模工具 Algoryx Momentum 实现 SpaceClaim 集成。<sup>[1](https://www.algoryx.se/agx-dynamics/)</sup><sup> • </sup><sup>[2](https://www.algoryx.se/technology/)</sup>

OpenPLX 是一种建模语言，专为描述可仿真的机器人和机械而设计，具有领域特定语法、内置物理定义以及用于可复用机器组件的模块化结构。它完全集成于 AGX Dynamics，并支持在 AGX Dynamics 与 Unity 和 Unreal 插件之间传输模型。<sup>[10](https://www.algoryx.se/documentation/complete/agx/html/doc/main/index.html)</sup>

在机器人领域，AGX 支持从 CAD 图纸或 URDF 导入机器人、运动规划，以及通过强化学习开发和训练控制器，控制器可通过 [ROS 2](https://www.edgepedia.org/zh/ros-2) 等中间件通信。`agxModel::SerialKinematicChain` 类提供正运动学、逆运动学和微分运动学，以及正动力学和逆动力学。<sup>[11](https://www.algoryx.se/documentation/complete/agx/html/doc/UserManual/source/robotics.html)</sup>

## 应用与验证

用例涵盖模拟器训练、控制系统开发、机械设计的原型制作与分析，以及开发自动驾驶等机器学习应用。仿真设计为可无限长时间运行；一次训练课程连续运行 40 小时被描述为典型用法，且物体、接触和场景可在运行期间动态更改。借助完整的日志记录功能，离线仿真可实时回放。<sup>[2](https://www.algoryx.se/technology/)</sup>

独立学术工作对该引擎进行了检验。在 AGX Dynamics 中实现的用于实时土方作业仿真的多尺度地形模型，在挖掘阻力和土壤位移方面与高分辨率参考仿真结果吻合，误差在 10% 至 25% 以内，而运行速度快三个数量级以上。<sup>[4](https://link.springer.com/article/10.1186/s40323-021-00196-3)</sup><sup> • </sup><sup>[12](https://arxiv.org/abs/2011.00459)</sup> 在[埃因霍温理工大学](https://www.edgepedia.org/zh/eindhoven-university-of-technology)（Eindhoven University of Technology）的碰撞感知机器人操作研究中，用 AGX Dynamics 生成的刚性碰撞映射与实验测定的碰撞映射相匹配，碰撞后速度平均误差为 3.1%，该引擎还被用于量化机器人装箱中的仿真到现实差距。<sup>[13](https://arxiv.org/abs/2411.06319)</sup><sup> • </sup><sup>[14](https://research.tue.nl/en/studentTheses/quantifying-the-sim-to-real-gap-in-robotic-bin-packing-via-nonsmo/)</sup> TERA 是一个用于自主挖掘机研究的模拟器，基于 Unity3D 构建，由 AGX 提供动力学。<sup>[15](https://arxiv.org/abs/2501.01430)</sup>

Algoryx 还报告了由直接求解器机器级精度（双精度约为 1.0E-16）所实现的极端条件演示，包括仿真一个附着在线缆上的 90 亿千克物体，该线缆的半径与头发丝的半径相当，以及一艘带有 16.8 公里长线缆的船舶实时仿真。<sup>[16](https://www.algoryx.se/non-confidential-tech-demos-made-available-for-critical-offshore-handling/)</sup>

## References

1. [AGX Dynamics, Algoryx](https://www.algoryx.se/agx-dynamics/)
2. [AGX Technology, Algoryx](https://www.algoryx.se/technology/)
3. [About Algoryx](https://www.algoryx.se/about/)
4. [Servin, Berglund, Nystedt (2021). A multiscale model of terrain dynamics for real-time earthmoving simulation. Advanced Modeling and Simulation in Engineering Sciences 8, 11.](https://link.springer.com/article/10.1186/s40323-021-00196-3)
5. [AGX Granular, AGX Dynamics 2.42.2.1 User Manual](https://www.algoryx.se/documentation/complete/agx/tags/latest/doc/UserManual/source/granular_body_system.html)
6. [AGX Dynamics Download](https://www.algoryx.se/download/?id=1887)
7. [Wire, AGX Dynamics for Unreal documentation](https://us.download.algoryx.se/AGXUnreal/documentation/current/wire.html)
8. [Offshore & Maritime, Algoryx](https://www.algoryx.se/maritime/)
9. [agxTerrain, AGX Dynamics 2.34.0.0 User Manual](https://www.algoryx.se/documentation/complete/agx/tags/agx-2.34.0.0/UserManual/source/agxTerrain.html)
10. [AGX Dynamics Main Page, documentation](https://www.algoryx.se/documentation/complete/agx/html/doc/main/index.html)
11. [Robotics, AGX Dynamics 2.43.0.0 User Manual](https://www.algoryx.se/documentation/complete/agx/html/doc/UserManual/source/robotics.html)
12. [A multiscale model of terrain dynamics for real-time earthmoving simulation, arXiv:2011.00459](https://arxiv.org/abs/2011.00459)
13. [van Steen et al. (2024). Impact-Aware Robotic Manipulation: Quantifying the Sim-To-Real Gap for Velocity Jumps, arXiv:2411.06319](https://arxiv.org/abs/2411.06319)
14. [Henst (2024). Quantifying the Sim-to-Real Gap in Robotic Bin Packing via Nonsmooth Physics Simulation, TU/e](https://research.tue.nl/en/studentTheses/quantifying-the-sim-to-real-gap-in-robotic-bin-packing-via-nonsmo/)
15. [Aluckal et al. (2024). TERA: A Simulation Environment for Terrain Excavation Robot Autonomy, arXiv:2501.01430](https://arxiv.org/abs/2501.01430)
16. [Non-confidential tech demos made available for critical offshore handling, Algoryx (2014)](https://www.algoryx.se/non-confidential-tech-demos-made-available-for-critical-offshore-handling/)

---
*Initially written Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/agx-dynamics

English original: https://www.edgepedia.org/agx-dynamics
