Skip to main content

DART

DART: Dynamic Animation and Robotics Toolkit

CI Linux CI macOS CI Windows
Documentation Status codecov Codacy Badge
PyPI Version conda-forge Version License

DART (Dynamic Animation and Robotics Toolkit) is an open-source C++17 library, with Python bindings (dartpy), for the kinematics, dynamics, and contact simulation of articulated rigid and soft bodies in robotics and computer animation. It represents articulated systems in generalized coordinates and computes their motion with Featherstone's Articulated Body Algorithm, which makes it accurate and stable.

Four DART demos: an Atlas humanoid walking under a SIMBICON controller, a Unitree G1 humanoid posed with inverse kinematics, a soft-body worm crawling, and a soft ball landing with adaptive soft contact
Atlas, soft-worm, and soft-contact scenes from dart-demos (pixi run demos), plus a Unitree G1 IK puppet from an earlier example

Why DART?

  • Research-grade dynamics — Featherstone's algorithms in generalized coordinates, with direct access to the mass matrix, Coriolis and gravity forces, Jacobians, and their derivatives
  • Contacts and constraints — LCP-based contact with Dantzig and PGS solvers, joint limits, closed kinematic loops, and soft bodies; collision detection through FCL (default), Bullet, ODE, or DART's native detector
  • Model loading — URDF, SDF, SKEL, and MJCF (experimental) parsers
  • Kinematics and control — hierarchical whole-body inverse kinematics with analytical solver support (e.g., IkFast), plus operational-space and stable-PD control examples
  • C++ and Python — the same engine through dartpy, packages on PyPI, conda-forge, and major package managers, and reproducible source builds with pixi
  • Battle-tested — powers Gazebo through gz-physics, and is used by research labs worldwide

Quick Start

Python

import dartpy as dart

world = dart.simulation.World()  # 1 ms time step, gravity along -z

# A shapeless 1 kg rigid body (the default inertia) free-falling from z = 1 m.
body = dart.dynamics.Skeleton("body")
body.createFreeJointAndBodyNodePair()
body.setPosition(5, 1.0)  # FreeJoint DOFs: rotation (0-2), translation (3-5)
world.addSkeleton(body)

for _ in range(100):
    world.step()

print(f"t = {world.getTime():.3f} s, z = {body.getPosition(5):.3f} m")
# t = 0.100 s, z = 0.950 m

C++

#include <dart/dart.hpp>

#include <iostream>

int main()
{
  auto world = dart::simulation::World::create();

  // A shapeless 1 kg rigid body (the default inertia) free-falling from z = 1 m.
  auto body = dart::dynamics::Skeleton::create("body");
  body->createJointAndBodyNodePair<dart::dynamics::FreeJoint>();
  body->setPosition(5, 1.0); // FreeJoint DOFs: rotation (0-2), translation (3-5)
  world->addSkeleton(body);

  for (int i = 0; i < 100; ++i)
    world->step();

  std::cout << "t = " << world->getTime() << " s, z = " << body->getPosition(5)
            << " m\n";
}
# CMakeLists.txt next to main.cpp
cmake_minimum_required(VERSION 3.22.1)
project(my_app CXX)
find_package(DART REQUIRED CONFIG)
add_executable(my_app main.cpp)
target_link_libraries(my_app PUBLIC dart)

Installation

Python

Method Command
pip pip install dartpy
uv uv add dartpy
pixi pixi add dartpy
conda conda install -c conda-forge dartpy

PyPI wheels cover the most common platforms and Python versions; see the Python installation guide for the exact list.

C++

Platform Command
Cross-platform (recommended) pixi add dartsim-cpp or conda install -c conda-forge dartsim-cpp
Ubuntu / Debian sudo apt install libdart-all-dev
Arch Linux (AUR) yay -S libdart
FreeBSD pkg install dartsim
macOS (Homebrew) brew install dartsim
Windows (vcpkg) vcpkg install dartsim:x64-windows

Distribution packages can lag behind the latest release: all distributions →. See the C++ installation guide for details.

Build from source

git clone https://github.com/dartsim/dart.git
cd dart
pixi run test   # configure, build, and run the C++ tests
pixi run demos  # build and launch the interactive demo app

See the build guide for options and other platforms.

Documentation

Contributing

Contributions are welcome; start with the contributing guide.

Branches

main is the development branch for the next release: pull requests target it, and all new patches land on it. Stable versions are available as tagged releases and as the packages above.

Citation

If you use DART in an academic publication, please consider citing the JOSS paper:

@article{Lee2018,
  doi       = {10.21105/joss.00500},
  url       = {https://doi.org/10.21105/joss.00500},
  year      = {2018},
  publisher = {The Open Journal},
  volume    = {3},
  number    = {22},
  pages     = {500},
  author    = {Jeongseok Lee and Michael X. Grey and Sehoon Ha and Tobias Kunz and Sumit Jain and Yuting Ye and Siddhartha S. Srinivasa and Mike Stilman and C. Karen Liu},
  title     = {DART: Dynamic Animation and Robotics Toolkit},
  journal   = {Journal of Open Source Software}
}

License

DART is licensed under the BSD 2-Clause License.

Star History

Star History Chart

Metadata

Release files for dartpy 6.20.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for dartpy 6.20.4
File Actions
dartpy-6.20.4-cp315-cp315-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64 Details for dartpy-6.20.4-cp315-cp315-manylinux_2_28_x86_64.whl
dartpy-6.20.4-cp315-cp315-manylinux_2_28_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ ARM64 Details for dartpy-6.20.4-cp315-cp315-manylinux_2_28_aarch64.whl
dartpy-6.20.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for dartpy-6.20.4-cp314-cp314-win_amd64.whl
dartpy-6.20.4-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for dartpy-6.20.4-cp314-cp314-manylinux_2_28_x86_64.whl
dartpy-6.20.4-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for dartpy-6.20.4-cp314-cp314-manylinux_2_28_aarch64.whl
dartpy-6.20.4-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for dartpy-6.20.4-cp314-cp314-macosx_15_0_arm64.whl
dartpy-6.20.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for dartpy-6.20.4-cp313-cp313-win_amd64.whl
dartpy-6.20.4-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for dartpy-6.20.4-cp313-cp313-manylinux_2_28_x86_64.whl
dartpy-6.20.4-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for dartpy-6.20.4-cp313-cp313-manylinux_2_28_aarch64.whl
dartpy-6.20.4-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for dartpy-6.20.4-cp313-cp313-macosx_15_0_arm64.whl
dartpy-6.20.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for dartpy-6.20.4-cp312-cp312-win_amd64.whl
dartpy-6.20.4-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for dartpy-6.20.4-cp312-cp312-manylinux_2_28_x86_64.whl
dartpy-6.20.4-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for dartpy-6.20.4-cp312-cp312-manylinux_2_28_aarch64.whl
dartpy-6.20.4-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for dartpy-6.20.4-cp312-cp312-macosx_15_0_arm64.whl

Total release size: 231.2 MB

Release files / dartpy-6.20.4-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL dartpy-6.20.4-cp315-cp315-manylinux_2_28_x86_64.whl
Size 18.7 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
be8fb9b10de31777a4d7358f9193427ffc5aebcad410ce2a1050c17fd5798d28
BLAKE2b-256 checksum
How to use checksums
73df72a575ca7bdf418d29c870689706f416da6e81a7519023362a400169711e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp315-cp315-manylinux_2_28_aarch64.whl

Download URL dartpy-6.20.4-cp315-cp315-manylinux_2_28_aarch64.whl
Size 17.4 MB
Tags CPython 3.15 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
463d27ed287d57319ff3b87122447bccaea1c252199f34f5c6983185c16ebc94
BLAKE2b-256 checksum
How to use checksums
b506e4bf5e81e1480dd5ce9eb08b048dac529ab65bd46046434fce4b52f4cdb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp314-cp314-win_amd64.whl

Download URL dartpy-6.20.4-cp314-cp314-win_amd64.whl
Size 13.7 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
862eda4de93ba77353be888eea72b95292ac554151a4a1c3883d8d3ba4eb7324
BLAKE2b-256 checksum
How to use checksums
dad1da5e7e14fc15d0f5e993b08b8b7f9148030aecc064f4c6d8d2cafd61d5b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dartpy-6.20.4-cp314-cp314-manylinux_2_28_x86_64.whl
Size 18.7 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
469c7f46928c70a2b0e7e871534e0c644f9f8c2abcfd25045feed347c6bafeb8
BLAKE2b-256 checksum
How to use checksums
0d10c0832ae7c51765615d09264160a92ed460c772120105347154295efd75cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL dartpy-6.20.4-cp314-cp314-manylinux_2_28_aarch64.whl
Size 17.4 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
3f069bfd00caec43e34c77e9182d0a4391c826a616e4b16ef3000ca80b69f359
BLAKE2b-256 checksum
How to use checksums
23541babd5dbe09ec2810b76066854bfd4716d9f86fbfbdb2074541d0cc8eb64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp314-cp314-macosx_15_0_arm64.whl

Download URL dartpy-6.20.4-cp314-cp314-macosx_15_0_arm64.whl
Size 15.3 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
38aa2a801213ce848e305c9e8d311e1a7e50abda9b8f0bc0d84ee20856d2b927
BLAKE2b-256 checksum
How to use checksums
e2eadd394d596ebb73c389cf5f812c544dff9d9d963b7802b591e75b7d8d3795
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp313-cp313-win_amd64.whl

Download URL dartpy-6.20.4-cp313-cp313-win_amd64.whl
Size 13.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ad660f574f2387b4fad40c2f80caaeca83d499f345475291e14825214d8720f9
BLAKE2b-256 checksum
How to use checksums
abb01641c32b62e19e593ea58cf96eaa4a9bba024d199d722a27b35ad1762731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dartpy-6.20.4-cp313-cp313-manylinux_2_28_x86_64.whl
Size 18.7 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ffe7bddf5d169410c98fee1e962e12b3d02fe31312ddf403f0102c05075b4d5c
BLAKE2b-256 checksum
How to use checksums
eaff585211209a0e2abdbd8969bfb4e3e2c67c925a6f8d7fef0526337f7d1987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL dartpy-6.20.4-cp313-cp313-manylinux_2_28_aarch64.whl
Size 17.4 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
80bf8ea7ac484ebb793dbfa21abaebe5833f11c113b7fa32e269688b215ac6c0
BLAKE2b-256 checksum
How to use checksums
b6f7d788fdaae8a7745a12eb17cf6f4e1b20887ab8b8d01cb94de34db9a47bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp313-cp313-macosx_15_0_arm64.whl

Download URL dartpy-6.20.4-cp313-cp313-macosx_15_0_arm64.whl
Size 15.3 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
7aa1ad2aa978b859e3a10003d0545b82836b8608e15b86b32e80a8724976bdc7
BLAKE2b-256 checksum
How to use checksums
2f9db69c1309c8b942bf605e8ad0e8b075027a044f8ae2d1684f2a058d77a73e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp312-cp312-win_amd64.whl

Download URL dartpy-6.20.4-cp312-cp312-win_amd64.whl
Size 13.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
db1040de8c26bf9eba87d1f4f882a9c13f00d016890d458b043c5680fa6c5e10
BLAKE2b-256 checksum
How to use checksums
d914b47cc10eed3e036615c9abba114439dd4f3bd4aa0719bf4cf97215e93f3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dartpy-6.20.4-cp312-cp312-manylinux_2_28_x86_64.whl
Size 18.7 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
018c804a38171b5417b057d304ffc2f5b42d9e86cee4ad5dd71fc87bb1372510
BLAKE2b-256 checksum
How to use checksums
6eed948c3323067a19fc1fb5a290ffa4c5fcb4d29d0658936c1fd9d7440f8156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL dartpy-6.20.4-cp312-cp312-manylinux_2_28_aarch64.whl
Size 17.4 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
388b2e1cd813272344c303535a95a72c15173026353ccc0134e0c5acdf712b88
BLAKE2b-256 checksum
How to use checksums
f9540c00913318dd97d84c87c8f998307706b5143851b02da166d8841d294fe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dartpy-6.20.4-cp312-cp312-macosx_15_0_arm64.whl

Download URL dartpy-6.20.4-cp312-cp312-macosx_15_0_arm64.whl
Size 15.3 MB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
307d815f80de1a062a3cff1416005809b573c5786cc9871ae3d7a72aab92ac46
BLAKE2b-256 checksum
How to use checksums
d750293871b90b95ac9cfc4597a3f2e12a5d2ba3add6688c984b4d9412c72938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for dartpy 6.20.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page