金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

dart-io

dart-io 是面向软件开发的 Agent Skill,来自 dartsim/dart。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

DART model loading - URDF, SDF, MJCF, SKEL parsers and dart::io unified API

SKILL.md

下载 MD ↓
namedart-io
descriptionDART model loading - URDF, SDF, MJCF, SKEL parsers and dart::io unified API

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 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

// 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

来源:dartsim/dart · BSD 许可 · 许可原文 · MD 为来源页保存的历史版本