首页/ AI 技能 / @skilllib/skill-2014279409467863041
Skill站外收录 @skilllib/skill-2014279409467863041

dart-python

提供 Dart 物理引擎的 Python 接口支持,涵盖骨骼模型加载、仿真步进与世界状态管理,集成 nanobind 绑定、wheel 构建流程及类型提示生成,适配 NumPy 与 Eigen 数据互通,并遵循 snake_case 命名规范。

0.0 (0) 246 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# DART Python Bindings (dartpy) Load this skill when working with Python bindings or dartpy. ## Quick Start ```python 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 ```bash pixi run build-py-dev # Build for development pixi run test-py # Run Python tests pixi run generate-stubs # Generate type stubs ``` ## Wheel Building ```bash 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/`

评论 0

还没有评论,来抢沙发。