dart-io
Original:🇺🇸 English
Translated
DART model loading - URDF, SDF, MJCF, SKEL parsers and dart::io unified API
9installs
Sourcedartsim/dart
Added on
NPX Install
npx skill4agent add dartsim/dart dart-ioTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →<!-- AUTO-GENERATED FILE - DO NOT EDIT MANUALLY -->
<!-- Source: .claude/skills/dart-io/SKILL.md -->
<!-- Sync script: scripts/sync_ai_commands.py -->
<!-- Run `pixi run sync-ai-commands` to update -->
DART Model Loading (
DART Model Loading (dart::io
)
dart::ioLoad 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.mdFor module-specific details:
dart/io/AGENTS.mdSupported Formats
| Format | Extension | Use Case |
|---|---|---|
| URDF | | ROS robots |
| SDF | | Gazebo models |
| MJCF | | MuJoCo models |
| 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