Skip to main content

Jaik

JAX analytic inverse kinematics: A fast solver for robots. Currently implemented are UR-robot arms, more will follow.

With vmap batches of 4k on a A100 GPU it reaches ~15M IK solves/s, saturating at ~500M/s at batch sizes of 4M+.

Installation

pip install jaik

It has jax, numpy, and sympy as dependencies.

Usage

UR robots can be imported by name, which uses default DH parameters. Custom DH and PoE parameters as well as URDF as input are planned in the future.

import jax
from jaik import make_robot

fk, ik_full, ik_closest = make_robot("ur10e")

q = jax.random.uniform(jax.random.PRNGKey(0), (6,))
R, p = fk(q)
Qs, valid = ik_full(R,p)
q0 = q * 1.1
q, branch = ik_closest(R, p, q0)

There is an additional optional numba backend installable with pip install "jaik[numba]". Then use it with jaik.make_robot(name, solver="numba"), by default it is solver="jax". For single calls or small batches, numba is significantly faster than jax.

The solvers avoid trigonometric functions where possible. If the first thing you do with the returned joint angles is jnp.sin(q), jnp.cos(q), we can save us both some time by using the keyword sincos=True in make_robot. This returns two values per joint as sin(q), cos(q). For UR robots, this avoids using trigonometric functions altogether.

By default it expects a (3,3) rotation matrix and (3,) vector as input (format="Rp" in make_robot). It can be changed to a single (4,4) matrix with format="T".

Planned

  • Add more robots available by name
  • Support for custom (calibrated) DH & PoE parameters
  • Support for URDF files as input

Benchmarks

The benchmarks were done on a Lenovo ThinkPad:

  • CPU: Intel Core Ultra 7 265U, 32 GB RAM

And on a cluster:

  • CPU: Intel Xeon E5-2698 v4 @ 2.20 GHz (40 cores, 32GB RAM allocated)
  • GPU: NVIDIA A100-SXM4-40GB

By using sincos=True which avoids the atan2 calls by returning sin(q), cos(q) directly:

Some examples

...

Metadata

Release files for jaik 0.0.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 jaik 0.0.3
File Size Uploaded Provenance Actions
jaik-0.0.3.tar.gz 1.2 MB With provenance Details for jaik-0.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / jaik-0.0.3.tar.gz

Download URL jaik-0.0.3.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
504628af6efd4ac63b84fb40e4f2d10763c70a7db445fdb7b194056218e91d66
BLAKE2b-256 checksum
How to use checksums
88002b0e81d9098d82ec55d3561bb685dae506587411d27a7d6971e0afe5682f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 12, 2026.

Transparency log

Release files / jaik-0.0.3-py3-none-any.whl

Download URL jaik-0.0.3-py3-none-any.whl
Size 111.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e9af1383be2ebd6bfcaf72b4db9dac9348d4f35ffaf02658453d5db8beb63ba
BLAKE2b-256 checksum
How to use checksums
cd4f0f8e132ce26b7066b31264668c1dbe774994b94dd076c71faba85556f177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 12, 2026.

Transparency log

Security for jaik 0.0.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jaik-0.0.3.tar.gz

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 May 12, 2026.

Transparency log

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