首页/ AI 技能 / @skilllib/skill-2014279418204598275
Skill站外收录 @skilllib/skill-2014279418204598275

dart-io

提供统一接口加载多种机器人模型格式,支持自动识别 URDF、SDF、MJCF 和 SKEL 文件,具备 ROS 包路径解析与格式强制指定能力,适用于跨仿真平台的机器人模型导入与转换场景。

0.0 (0) 183 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# DART Model Loading (`dart::io`) Load this skill when working with robot model files or parsers. ## Quick Start ```cpp #include <dart/io/Read.hpp> // Format auto-detection auto world = dart::io::readWorld("dart://sample/skel/chain.skel"); 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 | | SKEL | `.skel` | Legacy DART | ## Common Patterns ```cpp // 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`

评论 0

还没有评论,来抢沙发。