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

dart-python

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

DART Python bindings (dartpy) - nanobind, wheel building, API patterns

SKILL.md

下载 MD ↓
namedart-python
descriptionDART Python bindings (dartpy) - nanobind, wheel building, API patterns

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/

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