Skip to main content

High-performance inverse kinematics solver optimized for cross-embodiment VLA/AI applications

Project description

EmbodiK logo

EmbodiK

Python C++ Nanobind Build PyPI Docs License: Apache-2.0 GitHub stars

EmbodiK is a high-performance prioritized numerical inverse kinematics library for cross-embodiment robotics and VLA/AI applications. It pairs a C++ core with Python bindings, exposes robot-model utilities without requiring the Python pin package at runtime, and includes interactive examples for collision-aware IK, CoM constraints, teleop, whole-body robots, GPU batch solving, and dual-arm coordination.

✨ Overview

EmbodiK is designed for bringing up IK behavior across different robot bodies without rewriting the solver stack for each model. The public examples focus on a practical path:

  • 🧭 start with the smallest fixed-base IK loop.
  • 🛡️ add collision, joint-limit, and CoM constraints.
  • 🎮 connect the same prioritized IK solver path to teleop input.
  • 🤖 scale to bimanual, humanoid, and Spot whole-body examples.
  • 🧪 use richer clone-only examples for development, stress testing, and policy rollout.

The intent is to keep Python examples lean: visualization and target plumbing stay in Python, while constraint handling and recovery policy stay in the C++ solver.

The detailed installation notes, API reference, and example walkthroughs live in the official documentation:

https://robodreamer.github.io/embodik/

🚀 Quick Start

Fastest path for most users is the wheel-only PyPI install inside a virtual environment:

python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install --only-binary=:all: embodik
python -c "import embodik; print(embodik.__version__)"

If that import works, the core package is installed.

If pip cannot find a compatible wheel, use the one-shot source installer for your platform from the Installation Guide. It creates the venv, installs native dependencies, builds EmbodiK, and runs an import smoke test.

To run copied examples from the same venv:

python -m pip install "embodik[examples]"
embodik-examples --copy
cd embodik_examples
python 01_basic_ik_simple.py

Published repaired wheels do not require the Python pin package at runtime. Source builds use pin or a system Pinocchio install as the native library provider; keep that provider installed in the environment used to import EmbodiK.

🎮 Examples

The pip-facing examples are intentionally split by purpose:

Script Purpose
01_basic_ik_simple.py Minimal fixed-base IK bring-up for a robot preset or new URDF.
02_collision_aware_IK.py Collision-aware IK behavior demo and advanced tuning surface.
03_teleop_ik.py Small adapter showing how teleop input drives the same IK solver path.
04_com_constraint_example.py CoM support-polygon constraint visualization.
05_dual_arm_ects.py Dual-arm ECTS and orthogonal coordination modes.
06_bimanual_whole_body_ik.py Bimanual whole-body teleop, defaulting to AI Worker and optionally supporting RB-Y1, with CoM, collision handling, torso gizmo control, torso/arm contribution controls, adaptive tuning, and optional Seer input.
07_unitree_g1_retargeting_ik.py Unitree G1 whole-body retargeting IK with CoM and optional collision handling.
08_spot_full_body_ik_viser.py Spot full-body IK in regular Viser with arm+torso, torso-only, full-body, and two-stage modes.
09_spot_locomanip_mjviser.py Spot locomanipulation ONNX policy rollout in MuJoCo through mjviser.

Run them from a copied example directory:

python 02_collision_aware_IK.py
python 03_teleop_ik.py
python 06_bimanual_whole_body_ik.py
python 07_unitree_g1_retargeting_ik.py
python 08_spot_full_body_ik_viser.py

For Seer/xvisio controller input in the public teleop examples, install the teleop extra and pass the controller port:

python -m pip install "embodik[examples,teleop]"
python 06_bimanual_whole_body_ik.py --controller-port /dev/ttyUSB0

The regular Viser Spot full-body IK example uses the standard example dependencies and includes a bundled Spot-with-arm URDF. The MuJoCo/mjviser locomanipulation example needs the optional mjviser stack and includes a bundled public MuJoCo Menagerie Spot-with-arm MJCF scene. mjviser is the MuJoCo-backed web viewer environment for policy rollout and interactive simulation. mjviser-teleop is the same viewer stack plus the optional Seer/xvisio controller dependencies, so use it only when running --enable-teleop:

python -m pip install "embodik[mjviser]"
embodik-examples --copy
cd embodik_examples
python 09_spot_locomanip_mjviser.py --policy locomanip
python 09_spot_locomanip_mjviser.py --policy locomanip-stationary
# add the optional Seer controller extra when needed:
python -m pip install "embodik[mjviser,teleop]"
python 09_spot_locomanip_mjviser.py --enable-teleop --policy locomanip

From a repository checkout, run the same example from the repository root with the matching Pixi environment and task:

pixi run -e mjviser spot-locomanip-mjviser --policy locomanip
pixi run -e mjviser-teleop spot-locomanip-mjviser --enable-teleop --policy locomanip

Use the spot-locomanip-mjviser Pixi task from a checkout, not raw pixi run -e mjviser-teleop python examples/09_spot_locomanip_mjviser.py, on a fresh environment. The task depends on install, so it builds/installs the native EmbodiK extension before launching the example.

See the Spot locomanipulation guide for mjviser, Seer teleop, solver tuning, and headless validation details.

Most examples default to the Panda preset. Use --robot <key> when a script supports alternate robot presets. See the Examples Guide for the full catalog, helper conventions, and clone-only development examples.

🎬 Preview

Franka Panda collision-free IK

Franka Panda collision-free IK preview

ROBOTIS AI Worker constraint teleop

ROBOTIS AI Worker constraint teleop preview

RB-Y1 bimanual whole-body IK

RB-Y1 bimanual whole-body IK preview

Unitree G1 retargeting IK

Unitree G1 retargeting IK preview

Spot full-body IK

Spot full-body IK preview

Spot locomanipulation mjviser

Spot locomanipulation mjviser preview

🧰 Core Capabilities

  • ⚙️ C++ IK core with Nanobind Python bindings.
  • 🎯 Hierarchical velocity IK tasks for frames, posture, CoM, and dual-arm coordination.
  • 🛡️ Joint-limit, self-collision, and CoM support-polygon constraints.
  • 📈 Solver diagnostics for timing, task scaling, and Jacobian condition-number logging.
  • 🧭 Lie-group-aware configuration operations for floating-base, quaternion, and continuous joints.
  • 🤖 Native Pinocchio-backed robot model utilities exposed through EmbodiK bindings.
  • 👁️ Optional Viser visualization for interactive IK demos.
  • ⚡ Experimental GPU batch IK and collision tooling for high-throughput research workflows.

📚 Documentation

🛠️ Development

Use Pixi from a repository clone:

pixi run build
pixi run test
pixi run docs-build

Run examples from the clone:

pixi run python examples/01_basic_ik_simple.py
pixi run python examples/02_collision_aware_IK.py
pixi run python examples/03_teleop_ik.py

🗂️ Repository Layout

embodik/
|-- README.md
|-- cpp_core/
|   |-- include/embodik/
|   `-- src/
|-- python_bindings/
|   `-- src/
|-- python/embodik/
|-- examples/
|-- docs/
|-- scripts/
`-- test/

⭐ Star History

Star History Chart

📄 License

EmbodiK is released under the Apache License 2.0. See LICENSE for details. Binary wheels may bundle permissively licensed native dependencies; see THIRD_PARTY_NOTICES.md.

Developer: Andy Park andypark.purdue@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embodik-0.20.16.tar.gz (37.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

embodik-0.20.16-cp312-cp312-manylinux_2_28_x86_64.whl (28.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

embodik-0.20.16-cp312-cp312-macosx_14_0_arm64.whl (44.5 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

embodik-0.20.16-cp311-cp311-manylinux_2_28_x86_64.whl (28.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

embodik-0.20.16-cp311-cp311-macosx_14_0_arm64.whl (44.5 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

embodik-0.20.16-cp310-cp310-manylinux_2_28_x86_64.whl (28.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

embodik-0.20.16-cp310-cp310-macosx_14_0_arm64.whl (44.5 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file embodik-0.20.16.tar.gz.

File metadata

  • Download URL: embodik-0.20.16.tar.gz
  • Upload date:
  • Size: 37.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for embodik-0.20.16.tar.gz
Algorithm Hash digest
SHA256 ff717e5949137382f97e390743b155868c11c7eda9139e91221c9796719f48ff
MD5 3eff5d5a25ca7df457943be603a86748
BLAKE2b-256 e2a831dff16c1f9f646a3c61e4506ac21836e7db4e71a97154555a78f9151070

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16.tar.gz:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file embodik-0.20.16-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for embodik-0.20.16-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c913427608a6065075fd21eabc6d5b860266c51e8b09c8ae9f0a11c9616378f
MD5 dd3015af9ea79f1faf35b8088d427a00
BLAKE2b-256 4ca75daa4717bccfd913b1ef8897a2dbe1fc7e65d05da1f4f3e3cd0f1e7e3e66

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file embodik-0.20.16-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for embodik-0.20.16-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e512fad2a2c8971522d9e189938a52a148ebefc459aa5b6284bc519739c13dd4
MD5 0da8fcc53efa2586cf2e0ba9c0d1deaf
BLAKE2b-256 114e0f04b1fe77e06c20552698242efde5d21bd7f464614b6cf9d6f4be5b049a

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file embodik-0.20.16-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for embodik-0.20.16-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6097932d9b7b3a362213898d912ea6b00727eae001a37069f98ecbd4828e192
MD5 27e97307cfed011f76123a0e4e0a7e7f
BLAKE2b-256 73d063174616ce5effcdc408737dc4ef5b8ddfc9737ff2528d9d95f0ad6fbf73

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file embodik-0.20.16-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for embodik-0.20.16-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e91393b8df8df2158a7b574b15efc133fb58cd883b75b9edbb58ad0cdeff2e8f
MD5 65dd45dcdfa8b4f0be76498a3aae5868
BLAKE2b-256 0df2a1d558dca0d9c72b9afa7ac795e983347f7d398c303a67f440ab502f0484

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file embodik-0.20.16-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for embodik-0.20.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 528efca0b8c8f889606def8baf590912b22a586f4abb2e774f025a5f36d6d159
MD5 cceb5b6384af26da2ff01e40b6e22456
BLAKE2b-256 990f6f954c5053342c4d02a154c26d0a81a64b631cb16124cbdb0a8b39eca087

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file embodik-0.20.16-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for embodik-0.20.16-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 331ac3ddc895f2efdb344d480143955890a206d4fbb2cfa1c34c9f3a33dec96f
MD5 8476113eee7181bcd65d5a2690e6562d
BLAKE2b-256 92bd6a2812361f65583698c389956f6774fb8d585655b85c0253b376128f999e

See more details on using hashes here.

Provenance

The following attestation bundles were made for embodik-0.20.16-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: wheels.yml on robodreamer/embodik

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page