Skip to main content
SoRoMoX logo

Soft Robot Models in jaX (SoRoMoX)

Test PyPI version arXiv Python 3.11+ License Documentation

SoRoMoX is a fully numerical, JIT-compilable Python/JAX implementation of control-oriented models for articulated and continuum soft robots. It provides articulated soft-robot, piecewise-constant strain (PCS), and geometric variable strain (GVS) models through a common interface for kinematics, dynamics, energies, Jacobians and derivatives, and forward dynamics. Because the numerical core is JAX-native, these model computations can be JIT-compiled, automatically differentiated with respect to states, inputs, and physical parameters, batched, and executed on CPUs, GPUs, and TPUs.

Overview of SoRoMoX model families, JAX-native numerical infrastructure, and application case studies

Model-based controllers and rendering backends complement the core model implementations. The accompanying paper benchmarks the numerical stack and uses six application case studies to demonstrate differentiability, parallelization, and the control-oriented model interface.

Note: SoRoMoX succeeds JSRM, replacing symbolic derivations with scalable numerical implementations and extending the model families and common interfaces.

Models and numerical interface

  • Soft robot model implementations: articulated soft-robot, PCS, and GVS formulations implemented numerically in Python/JAX.
  • JAX-native execution: JIT compilation, automatic differentiation with respect to states, inputs, and parameters, vectorization with vmap, and CPU/GPU/TPU execution.
  • Control-oriented quantities: backbone kinematics, Jacobians and their derivatives, inertia matrices, Coriolis, gravitational, elastic, and damping terms, energies, actuation maps, and forward dynamics.
  • Composable actuation and systems: generalized-coordinate/strain, threadlike, McKibben, and functional-metamaterial actuation across planar and spatial examples.
  • Model-based control implementations: configuration-, operational-, and actuation-space controllers, including potential compensation, computed-torque, and impedance controllers.
  • Rendering: Matplotlib, Open3D, Viser, and OpenCV backends for static, interactive, real-time, and recorded visualizations.

Following the model organization in Table II of the paper:

Model family Planar implementation Actuation modalities Example instantiations
Articulated soft robot Soft pendulum Generalized-coordinate (joint-torque), articulated-tendon, and McKibben actuation UMArm
Piecewise constant strain (PCS) Planar PCS Generalized-strain, threadlike, and functional-metamaterial (HSA) actuation I-SUPPORT and planar HSA
Geometric variable strain (GVS) — Generalized-coordinate and threadlike actuation Tapered cable-driven soft tentacle

Installation

Install the core package from PyPI:

python -m pip install soromox

With uv:

uv pip install soromox

Optional extras add the dependencies needed for a workflow:

python -m pip install "soromox[rendering]"     # all rendering backends
python -m pip install "soromox[examples]"      # runnable examples
python -m pip install "soromox[rl]"            # reinforcement learning examples
python -m pip install "soromox[paper_results]" # paper reproduction workflows

For an editable source installation:

git clone https://github.com/tud-phi/soromox.git
cd soromox
python -m pip install -e .

Contributors can add development extras with python -m pip install -e ".[dev,docs,examples]"; see CONTRIBUTING.md for tests and tooling.

Quick start

Run a simulation from the example catalogue:

python examples/simulation/pendulum/simulate_pendulum.py
python examples/simulation/pcs/simulate_planar_pcs.py

The Quick Start introduces model construction, simulation, control, and rendering. The examples catalogue maps complete scripts to the supported models and workflows.

Performance

For the paper's sequential CPU rollouts, SoRoMoX is up to 18.1× faster than SoRoSim in matched PCS and GVS cases:

Formulation Case SoRoSim (s) SoRoMoX (s) Speedup
FEM/PCS Planar 75.73 4.18 18.1×
FEM/PCS Spatial 78.65 13.26 5.9×
FEM/GVS Spatial 55.54 36.33 1.5×
FEM/GVS Tendons 75.80 36.47 2.1×

GPU batch simulation throughput scaling for articulated, PCS, and GVS models

On the paper's RTX 5090 benchmark, increasing the leading batch size from 1 to 256 yields up to 234.6× higher simulation throughput. See Paper & Results for the full benchmark context and reproduction pointers.

Application case studies

The paper's six application case studies demonstrate how the model layer can support parameter identification, residual learning, model-based control, controller gain optimization, safety-constrained control, and parallel reinforcement learning.

Six application case studies from the SoRoMoX paper

Operational-space model-based control

Operational-space impedance control using a two-segment PCS model

Safety-constrained control

Comparison of safety-unaware and HOCBF-constrained continuum-robot control

Parallel reinforcement learning

Comparison of initialized and trained reinforcement-learning policies for a tendon-driven PCS robot

See all six studies on the Paper & Results page.

Documentation

Citation

If you use SoRoMoX in academic work, please cite the associated preprint:

@misc{stolzle2026soromox,
  title = {{SoRoMoX}: Fast, Differentiable, and Parallelizable Soft Robot Models},
  author = {Maximilian St{\"o}lzle and Solange Gribonval and Daniel {Feliu-Talegon} and Vito Daniele Perfetta and Michele Martini and Chuhan Zhang and Kiwan Wong and Mohammed Tarnini and Anup Teejo Mathew and Federico Renda and Daniela Rus and Cosimo {Della Santina}},
  year = {2026},
  eprint = {2608.06650},
  archivePrefix = {arXiv},
  primaryClass = {cs.RO},
  doi = {10.48550/arXiv.2608.06650},
  url = {https://arxiv.org/abs/2608.06650},
}

For reproducible computational work, also report soromox.__version__. The full citation guide contains exact-version software citations and model- or controller-specific references.

Contributing and license

Contributions are welcome; start with CONTRIBUTING.md. SoRoMoX is distributed under the MIT License.

Metadata

Release files for soromox 0.2.3

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

Source distribution (sdist)

Source distribution for soromox 0.2.3
File Size Uploaded
soromox-0.2.3.tar.gz 357.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for soromox 0.2.3
File Interpreter ABI Platform
soromox-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 773.5 kB

Release files / soromox-0.2.3.tar.gz

Download URL soromox-0.2.3.tar.gz
Size 357.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bc2b44bfb00672e6a27481e79b4a060c9395b67d2a8bf58001cf6b9cf1879b2a
BLAKE2b-256 checksum
How to use checksums
7c75827acaaad7e5765468b4a8bdba0c87acb1576a5cb10898b0a794ac51ae47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / soromox-0.2.3-py3-none-any.whl

Download URL soromox-0.2.3-py3-none-any.whl
Size 415.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d996dcf5203b85141fb2f8eec43e2defa8316dd9812936578c1a59ee13905c26
BLAKE2b-256 checksum
How to use checksums
7be78903d35588de07d34d50e37fbf610b88264eb321cd8b9996b1ce241b8628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

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