Agent Skills
› dartsim/dart
› dart-io
dart-io
GitHub用于加载机器人模型文件(URDF、SDF、MJCF),支持格式自动检测与包路径解析。
触发场景
需要解析 URDF、SDF 或 MJCF 格式的机器人模型文件
使用 dart::io 进行 DART 机器人模型的加载
安装
npx skills add dartsim/dart --skill dart-io -g -y
SKILL.md
Frontmatter
{
"name": "dart-io",
"description": "DART IO: URDF, SDF, MJCF parsers, and dart::io loading"
}
DART Model Loading (dart::io)
Load this skill when working with robot model files or parsers.
Quick Start
#include <dart/io/Read.hpp>
// Format auto-detection
auto skel = dart::io::readSkeleton("dart://sample/urdf/KR5/KR5 sixx R650.urdf");
Full Documentation
For complete I/O guide: docs/onboarding/io-parsing.md
For module-specific details: dart/io/AGENTS.md
Supported Formats
| Format | Extension | Use Case |
|---|---|---|
| URDF | .urdf |
ROS robots |
| SDF | .sdf, .world |
Gazebo models |
| MJCF | .xml |
MuJoCo models |
Common Patterns
// URDF with package resolution
dart::io::ReadOptions options;
options.addPackageDirectory("my_robot", "/path/to/my_robot");
auto skel = dart::io::readSkeleton("package://my_robot/urdf/robot.urdf", options);
// Force specific format
options.format = dart::io::ModelFormat::Sdf;
Key Files
- API:
dart/io/Read.hpp - Tests:
tests/unit/io/test_Read.cpp
版本历史
-
51b2d25
当前 2026-07-11 18:26
移除了对旧版 DART 7 的 SKEL 格式支持
- e0d13fd 2026-07-05 10:37


