Loading...
Loading...
DART model loading - URDF, SDF, MJCF, SKEL parsers and dart::io unified API
npx skill4agent add dartsim/dart dart-iodart::io#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");docs/onboarding/io-parsing.mddart/io/AGENTS.md| Format | Extension | Use Case |
|---|---|---|
| URDF | | ROS robots |
| SDF | | Gazebo models |
| MJCF | | MuJoCo models |
| SKEL | | Legacy DART |
// 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;dart/io/Read.hpptests/unit/io/test_Read.cpp