Skip to content

Software

PyRoki

From github.com/chungmin99/pyroki (opens in a new tab)

  • Robot arms and industry
  • Library
  • MIT

PyRoki is a Python toolkit for robot kinematic optimization, built on JAX, covering forward kinematics from URDF files and collision-aware cost design.

Facts

GitHub stars
1,826read on 28 Nov 2026
Last update
1 Apr 2026Newest commit on main
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate
Hardware it needs, as the project states it
CPU, GPU, or TPU via JAX; no further hardware requirements are stated.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 388e43e (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Provides a differentiable forward kinematics model built from a URDF robot description.
  • Generates collision primitives such as capsules automatically from the robot model.
  • Offers common costs including end-effector pose, self and world collision, and manipulability.
  • Supports arbitrary costs with autodiff or analytical Jacobians.
  • Integrates a Levenberg-Marquardt solver with manifold optimization and hard constraints via an Augmented Lagrangian solver.
  • Runs on CPU, GPU, and TPU through JAX; installable with pip on Python 3.10+.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Maintained, last commit on 1 Apr 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

Facts read at commit 388e43e

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 @chungmin99, at commit 388e43e, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

PyRoki: Python Robot Kinematics Library

Project page (opens in a new tab) • arXiv (opens in a new tab)

PyRoki is a modular, extensible, and cross-platform toolkit for kinematic optimization, all in Python.

Core features include:

  • Differentiable robot forward kinematics model from a URDF.
  • Automatic generation of robot collision primitives (e.g., capsules).
  • Differentiable collision bodies with numpy broadcasting logic.
  • Common cost implementations (e.g., end effector pose, self/world-collision, manipulability).
  • Arbitrary costs, autodiff or analytical Jacobians.
  • Integration with a Levenberg-Marquardt Solver (opens in a new tab) that supports optimization on manifolds (e.g., lie groups (opens in a new tab)) and hard constraints via an Augmented Lagrangian solver.
  • Cross-platform support (CPU, GPU, TPU) via JAX.

Please refer to the documentation (opens in a new tab) for more details, features, and usage examples.


Installation

You can install pyroki with pip, on Python 3.10+:

git clone https://github.com/chungmin99/pyroki.git
cd pyroki
pip install -e .
Status

May 6, 2025: Initial release

We are preparing and will release by May 16, 2025:

  • Examples + documentation for hand / humanoid motion retargeting
  • Documentation for using manually defined Jacobians
  • Support with Python 3.10+
Limitations
  • Static shapes & JIT overhead: JAX JIT compilation is triggered on first run and when input shapes change (e.g., number of targets, obstacles). Arrays can be pre-padded to vectorize over inputs with different shapes.
  • No sampling-based planners: We don't include sampling-based planners (e.g., graphs, trees).
  • Collision performance: Speed and accuracy comparisons against other robot toolkits such as CuRobo have not been extensively performed, and is likely slower than other toolkits for collision-heavy scenarios.

The following are current implementation limitations that could potentially be addressed in future versions:

  • Joint types: We only support revolute, continuous, prismatic, and fixed joints. Other URDF joint types are treated as fixed joints.
  • Collision geometry: We are limited to sphere, capsule, halfspace, and heightmap geometries. Mesh collision is approximated as capsules.
  • Kinematic structures: We only support kinematic trees; no closed-loop mechanisms or parallel manipulators.
Citation

This codebase is released with the following preprint.

*Equal Contribution, UC Berkeley.

Please cite PyRoki if you find this work useful for your research:

@inproceedings{kim2025pyroki,
  title={PyRoki: A Modular Toolkit for Robot Kinematic Optimization},
  author={Kim*, Chung Min and Yi*, Brent and Choi, Hongsuk and Ma, Yi and Goldberg, Ken and Kanazawa, Angjoo},
  booktitle={2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
  year={2025},
  url={https://arxiv.org/abs/2505.03728},
}

Thanks!

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.