Software
JaxSim
By Generative Bionics, Italy (checked on github.com/gbionics (opens in a new tab)), from github.com/gbionics/jaxsim (opens in a new tab)
- Simulators
- Simulator
- BSD-3-Clause
JaxSim is a differentiable physics engine built on JAX, aimed at co-design and robot learning, with a focus on locomotion.
Facts
- GitHub stars
- 207read on 28 Nov 2026
- Last update
- 23 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Advanced
- Hardware it needs, as the project states it
- A computer capable of running JAX; GPU support for JAX is installed automatically when a compatible GPU is detected, and URDF support additionally needs Gazebo Sim components (sdformat 13.0 or later).
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 003943c (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Simulates fixed-base and floating-base robots in reduced coordinates, with physically consistent differentiability with respect to hardware parameters.
- Supports closed chain dynamics and loads SDF models, plus URDF through sdformat conversion.
- Runs on CPUs, GPUs and TPUs, with JIT compilation and automatic vectorization.
- Can also be used as a multibody dynamics library, with automatic differentiation of rigid body dynamics algorithms.
- Only contacts between bodies and smooth ground surfaces are supported, and the API is experimental and may change.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-3-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 23 Nov 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/gbionics/jaxsim (opens in a new tab)
- The version Robotheca read003943c (opens in a new tab)
- Latest releasev0.10.0 (23 Nov 2026)
Robotheca read the repository at two versions: the summary at 51966e9 and the facts and the README at 003943c (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Generative Bionics, at commit 003943c, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
JaxSim
JaxSim is a differentiable physics engine built with JAX, tailored for co-design and robotic learning applications.
Features
- Physically consistent differentiability w.r.t. hardware parameters.
- Closed chain dynamics support.
- Reduced-coordinate physics engine for fixed-base and floating-base robots.
- Fully Python-based, leveraging JAX (opens in a new tab) following a functional programming paradigm.
- Seamless execution on CPUs, GPUs, and TPUs.
- Supports JIT compilation and automatic vectorization for high performance.
- Compatible with SDF models and URDF (via sdformat (opens in a new tab) conversion).
[!WARNING] This project is still experimental. APIs may change between releases without notice.
[!NOTE] JaxSim currently focuses on locomotion applications. Only contacts between bodies and smooth ground surfaces are supported.
How to use it
import pathlib
import icub_models
import jax.numpy as jnp
import jaxsim.api as js
# Load the iCub model
model_path = icub_models.get_model_file("iCubGazeboV2_5")
joints = ('torso_pitch', 'torso_roll', 'torso_yaw', 'l_shoulder_pitch',
'l_shoulder_roll', 'l_shoulder_yaw', 'l_elbow', 'r_shoulder_pitch',
'r_shoulder_roll', 'r_shoulder_yaw', 'r_elbow', 'l_hip_pitch',
'l_hip_roll', 'l_hip_yaw', 'l_knee', 'l_ankle_pitch', 'l_ankle_roll',
'r_hip_pitch', 'r_hip_roll', 'r_hip_yaw', 'r_knee', 'r_ankle_pitch',
'r_ankle_roll')
# Build and reduce the model
model_description = pathlib.Path(model_path)
full_model = js.model.JaxSimModel.build_from_model_description(
model_description=model_description,
)
model = js.model.reduce(model=full_model, considered_joints=joints)
# Get the number of degrees of freedom
ndof = model.dofs()
# Initialize data and simulation
# Note that the default data representation is mixed velocity representation
data = js.data.JaxSimModelData.build(
model=model, base_position=jnp.array([0.0, 0.0, 1.0])
)
T = jnp.arange(start=0, stop=1.0, step=model.time_step)
tau = jnp.zeros(ndof)
# Simulate
for _ in T:
data = js.model.step(
model=model, data=data, link_forces=None, joint_force_references=tau
)
Check the example folder for additional use cases!
Installation
You can install the project using conda (opens in a new tab) as follows:
conda install jaxsim -c conda-forge
GPU support for JAX will be automatically installed if a compatible GPU is detected.
Note
The minimum version of
pixirequired is0.39.0.
Since the pixi.lock file is stored using Git LFS, make sure you have Git LFS (opens in a new tab) installed and properly configured on your system before installation. After cloning the repository, run:
git lfs install && git lfs pull
This ensures all LFS-tracked files are properly downloaded before you proceed with the installation.
You can add the jaxsim dependency in your pixi (opens in a new tab) project as follows:
pixi add jaxsim
If you are on Linux and you want to use a cuda-powered version of jax, remember to add the appropriate line in the system-requirements (opens in a new tab) table, i.e. adding
[system-requirements]
cuda = "13"
if you are using a pixi.toml file or
[tool.pixi.system-requirements]
cuda = "13"
if you are using a pyproject.toml file.
You can install the project using pypa/pip (opens in a new tab), preferably in a virtual environment (opens in a new tab), as follows:
pip install jaxsim
Check pyproject.toml (opens in a new tab) for the complete list of optional dependencies.
You can obtain a full installation using jaxsim[all].
If you need URDF support, follow the official instructions (opens in a new tab) to install Gazebo Sim on your operating system,
making sure to obtain sdformat ≥ 13.0 and gz-tools ≥ 2.0.
You don't need to install the entire Gazebo Sim suite.
For example, on Ubuntu, it is sufficient to install the libsdformat* and gz-tools2 packages.
If you need GPU support, follow the official installation instructions (opens in a new tab) of JAX.
If you want to contribute to the project, we recommend creating the following jaxsim conda environment first:
conda env create -f environment.yml
Then, activate the environment and install the project in editable mode:
conda activate jaxsim
pip install --no-deps -e .
Note
The minimum version of
pixirequired is0.39.0.
Since the pixi.lock file is stored using Git LFS, make sure you have Git LFS (opens in a new tab) installed and properly configured on your system before installation. After cloning the repository, run:
git lfs install && git lfs pull
This ensures all LFS-tracked files are properly downloaded before you proceed with the installation.
You can install the default dependencies of the project using pixi (opens in a new tab) as follows:
pixi install
See pixi task list for a list of available tasks.
Documentation
The JaxSim API documentation is available at jaxsim.readthedocs.io (opens in a new tab).
Additional features
Jaxsim can also be used as a multi-body dynamics library! With full support for automatic differentiation of RBDAs (forwards and reverse mode) and automatic differentiation against both kinematic and dynamic parameters.
Using JaxSim as a multibody dynamics library
import pathlib
import icub_models
import jax.numpy as jnp
import jaxsim.api as js
# Load the iCub model
model_path = icub_models.get_model_file("iCubGazeboV2_5")
joints = ('torso_pitch', 'torso_roll', 'torso_yaw', 'l_shoulder_pitch',
'l_shoulder_roll', 'l_shoulder_yaw', 'l_elbow', 'r_shoulder_pitch',
'r_shoulder_roll', 'r_shoulder_yaw', 'r_elbow', 'l_hip_pitch',
'l_hip_roll', 'l_hip_yaw', 'l_knee', 'l_ankle_pitch', 'l_ankle_roll',
'r_hip_pitch', 'r_hip_roll', 'r_hip_yaw', 'r_knee', 'r_ankle_pitch',
'r_ankle_roll')
# Build and reduce the model
model_description = pathlib.Path(model_path)
full_model = js.model.JaxSimModel.build_from_model_description(
model_description=model_description,
)
model = js.model.reduce(model=full_model, considered_joints=joints)
# Initialize model data
data = js.data.JaxSimModelData.build(
model=model,
base_position=jnp.array([0.0, 0.0, 1.0]),
)
# Frame and dynamics computations
frame_index = js.frame.name_to_idx(model=model, frame_name="l_foot")
# Frame transformation
W_H_F = js.frame.transform(
model=model, data=data, frame_index=frame_index
)
# Frame Jacobian
W_J_F = js.frame.jacobian(
model=model, data=data, frame_index=frame_index
)
# Dynamics properties
M = js.model.free_floating_mass_matrix(model=model, data=data) # Mass matrix
h = js.model.free_floating_bias_forces(model=model, data=data) # Bias forces
g = js.model.free_floating_gravity_forces(model=model, data=data) # Gravity forces
C = js.model.free_floating_coriolis_matrix(model=model, data=data) # Coriolis matrix
# Print dynamics results
print(f"{M.shape=} \n{h.shape=} \n{g.shape=} \n{C.shape=}")
Credits
The RBDAs are based on the theory of the Rigid Body Dynamics Algorithms (opens in a new tab) book by Roy Featherstone. The algorithms and some simulation features were inspired by its accompanying code (opens in a new tab).
The development of JaxSim started in late 2021, inspired by early versions of google/brax (opens in a new tab).
At that time, Brax was implemented in maximal coordinates, and we wanted a physics engine in reduced coordinates.
We are grateful to the Brax team for their work and for showing the potential of JAX (opens in a new tab) in this field.
Brax v2 was later implemented with reduced coordinates, following an approach comparable to JaxSim. The development then shifted to MJX (opens in a new tab), which provides a JAX-based implementation of the Mujoco APIs.
The main differences between MJX/Brax and JaxSim are as follows:
- JaxSim supports out-of-the-box all SDF models with Pose Frame Semantics (opens in a new tab).
- JaxSim only supports collisions between points rigidly attached to bodies and a compliant ground surface.
Contributing
We welcome contributions from the community. Please read the contributing guide (opens in a new tab) to get started.
Citing
If you use JaxSim in your work, please cite the following paper:
@article{ferretti_contact_aware_2026,
author = {Filippo Luca Ferretti and Diego Ferigo and Alessandro Croci and Carlotta Sartore and Omar G. Younis and Silvio Traversaro and Daniele Pucci},
title = {Contact-Aware Morphology Optimization via Physically Consistent Differentiable Simulation},
journal = {IEEE Robotics and Automation Letters},
year = {2026},
doi = {10.1109/LRA.2026.3678125}
}
People
| Authors | Maintainer |
|---|---|
License
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.