rbdl/rbdl
RBDL is a C++ library that contains some essential and efficient rigid body dynamics algorithms such as the Articulated Body Algorithm (ABA) for forward dynamics, Recursive Newton-Euler Algorithm (RNEA) for inverse dynamics, the Composite Rigid Body Algorithm (CRBA) for the efficient computation of the joint space inertia matrix and is also able to compute forward dynamics with external contact constraints and collision impulses. Furthermore it has some basic support for forward and inverse kinematics.
What it is
RBDL is a C++ library that simulates the movement of connected rigid bodies (like robot arms or human skeletons). It implements the core physics algorithms needed to compute how such systems move, and is designed for high efficiency.
Core algorithms it provides
- Forward dynamics — given forces, compute how the bodies accelerate (Articulated Body Algorithm)
- Inverse dynamics — given a motion, compute the forces required to produce it (Recursive Newton-Euler Algorithm)
- Joint space inertia matrix — a mass matrix that relates accelerations to forces (Composite Rigid Body Algorithm)
- Plus Jacobians, forward and inverse kinematics, handling of contacts and collisions, and closed-loop models.
Notation follows Roy Featherstone's textbook Rigid Body Dynamics Algorithm.
Where it comes from
Developed by Martin Felis (and later contributors) at Heidelberg University's research group for Optimization in Robotics and Biomechanics. Published under a permissive zlib license, allowing use in commercial projects.
How to get it
- Clone from GitHub:
git clone --recursive https://github.com/rbdl/rbdl - Build with CMake (requires Eigen3 for math).
- Alternatively install via vcpkg on Windows, Linux, or Mac.
Adding model files in different formats
The core library requires you to build models programmatically. Optional "addons" let you load models written in:
- Lua — the
luamodeladdon (needs Lua 5.1) - URDF — the
urdfaddon, a common robot description format (uses a bundled URDF parser) - Muscles — a
muscleaddon for models with muscle actuators (per Millard et al.), plus an optional muscle-fitting component that requires the Ipopt optimization library.
Python access
A Python wrapper can be built (enabled via a CMake flag), giving access to most of RBDL from Python 3 (or optionally Python 2). It needs NumPy, SciPy, Cython, and Matplotlib for full functionality.
Learning resources
- Examples folder — best starting point for newcomers; includes both instructive and minimal examples.
- Doxygen docs — auto-generated from the code; recent components are well documented, older ones less so.
- Test code — contains minimal usage examples for nearly every feature.
- Literature — key references include Featherstone's book and Felis's 2016 paper (see citation below).
Documentation
Generate locally with doxygen Doxyfile, or view online at https://rbdl.github.io.
Citation
If you use RBDL in academic work, cite:
Felis, Martin L. "RBDL: an efficient rigid-body dynamics library using recursive algorithms." Autonomous Robots, 2017. DOI: 10.1007/s10514-016-9574-0
License
zlib license — very permissive: free to use commercially, modify, and redistribute, provided the origin is not misrepresented and altered versions are marked as such.
Related
- Project
- Project
- Project
- Project