dart-python
Installation
SKILL.md
DART Python Bindings (dartpy)
Load this skill when working with Python bindings or dartpy.
Quick Start
import dartpy as dart
world = dart.World()
skel = dart.io.read_skeleton("dart://sample/urdf/KR5/KR5 sixx R650.urdf")
world.add_skeleton(skel)
for _ in range(100):
world.step()
Full Documentation
For complete Python bindings guide: docs/onboarding/python-bindings.md
For module-specific details: python/AGENTS.md
Quick Commands
pixi run build-py-dev # Build for development
pixi run test-py # Run Python tests
pixi run generate-stubs # Generate type stubs
Wheel Building
pixi run -e py312-wheel wheel-build
pixi run -e py312-wheel wheel-repair # Linux only
pixi run -e py312-wheel wheel-test
Key Patterns
- snake_case preferred (camelCase emits DeprecationWarning)
- NumPy arrays auto-convert to Eigen types
- GUI requires
DART_BUILD_GUI=ON
Key Files
- Package config:
pyproject.toml - Build system:
python/dartpy/CMakeLists.txt - Type stubs:
python/stubs/dartpy/
Related skills
More from dartsim/dart
dart-io
DART model loading - URDF, SDF, MJCF, SKEL parsers and dart::io unified API
23dart-build
DART build system knowledge - CMake, pixi, dependencies, troubleshooting
22dart-test
DART testing patterns - unit tests, integration tests, CI validation
21dart-ci
DART CI/CD troubleshooting - GitHub Actions, cache debugging, platform-specific failures
15dart-contribute
DART contribution workflow - branching, PRs, code review, dual-PR for bugfixes
13