Skip to content

Software

mink

From github.com/kevinzakka/mink (opens in a new tab)

  • Robot arms and industry
  • Library
  • Apache-2.0

A Python library for differential inverse kinematics on robot models, built on the MuJoCo physics engine. It is a port of the Pink library.

Facts

GitHub stars
1,627read on 28 Nov 2026
Last update
19 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 1850518 (opens in a new tab), on 21 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Specifies inverse kinematics tasks in configuration space or operational space.
  • Enforces limits on joint positions and velocities.
  • Avoids collisions between any pair of geoms.
  • Supports closed-chain kinematics (loop closures) through MuJoCo equality constraints.
  • Provides a Lie group interface for rigid body transforms, with native C optimization for IK hot paths.
  • Ships examples for many robots, including single and dual arms, hands, humanoids, legged robots and mobile manipulators.

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

Robots on Robotheca
Used by Berkeley Humanoid Lite Arm (BHL v1.5).
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
uv add minkWhere it comes from
Maintenance
Active, last commit on 19 Nov 2026.

Works with

1 robot on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

Copied word for word from the creator's own documentation; each block links to the lines it comes from.

Installation (step 1 of 2)

uv add mink

From README.md at 8258583, line 40 (opens in a new tab)

Installation (step 2 of 2)

git clone https://github.com/kevinzakka/mink.git && cd mink
uv sync

From README.md at 8258583, lines 46–47 (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 1850518

Robotheca read the repository at three versions: the summary at ae67596, the facts and the README at 1850518 (read on 28 Nov 2026) and the install commands at 8258583 (read on 6 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 @kevinzakka, at commit 1850518, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

mink

(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)

mink is a Python library for differential inverse kinematics, built on MuJoCo (opens in a new tab).

You give mink tasks (objectives, such as a target pose for a frame), limits (inequalities, such as a joint range), and constraints (equalities that must hold, such as a foot that stays flat on the floor). At each step, mink solves a quadratic program for a velocity: the one that best reduces the task errors while it satisfies every limit and constraint. Integrate it over a short time step to get the next configuration, and repeat to move the robot toward the goal. mink works with any MuJoCo model, from a single arm to a humanoid with a floating base.

Each image links to a related example.

Installation
uv add mink
Quickstart

This example moves the Panda hand 20 cm forward (+x) and 20 cm down. A posture task keeps the arm near its home configuration.

import mujoco
import numpy as np
import mink
from robot_descriptions import panda_mj_description

model = mujoco.MjModel.from_xml_path(panda_mj_description.MJCF_PATH)
configuration = mink.Configuration(model)
configuration.update_from_keyframe("home")

hand = mink.FrameTask("hand", "body", position_cost=1.0, orientation_cost=1.0)
start = configuration.get_transform_frame_to_world("hand", "body")
hand.set_target(mink.SE3.from_translation(np.array([0.2, 0.0, -0.2])) @ start)

posture = mink.PostureTask(model, cost=1e-2)
posture.set_target_from_configuration(configuration)

dt = 0.01
for _ in range(200):
    vel = mink.solve_ik(configuration, [hand, posture], dt, "daqp")
    configuration.integrate_inplace(vel, dt)

Each loop iteration is one step: solve_ik returns a velocity, and integrate_inplace integrates it over dt to update the configuration.

You can also pass a task as a constraint. A hard constraint must hold exactly. If the problem has no feasible solution, solve_ik raises NoSolutionFound. An Elastic constraint replaces the equality with an L1 penalty. It holds exactly while the penalty is large enough and otherwise yields, so the problem stays feasible.

vel = mink.solve_ik(
    configuration, [posture], dt, "daqp",
    constraints=[mink.Elastic(hand, penalty=1e3)],
)

The documentation (opens in a new tab) explains tasks, limits, and the underlying formulation.

Features

Tasks. mink minimizes the task errors in a weighted least-squares sense.

  • Pose of a frame, in the world or relative to a different frame (FrameTask, RelativeFrameTask)
  • Center of mass (ComTask) and joint posture (PostureTask)
  • Direction of a frame axis, toward a point or along a vector (LookAtTask, AxisAlignTask)
  • Closed kinematic chains, from MuJoCo equality constraints (opens in a new tab) (EqualityConstraintTask)
  • Regularization and DOF freezing (DampingTask, KineticEnergyRegularizationTask, DofFreezingTask)

Limits. mink applies limits as inequalities.

  • Joint position and velocity limits (ConfigurationLimit, VelocityLimit)
  • Velocity limits on a floating base (FreeJointVelocityLimit)
  • Collision avoidance between pairs of geoms (CollisionAvoidanceLimit)

Constraints. mink applies constraints as equalities.

  • A task held exactly (hard constraint)
  • A task wrapped in Elastic, which yields through an L1 penalty instead of making the problem infeasible

Frame transforms and the errors and Jacobians of frame tasks use native C code.

Examples

To run an example:

git clone https://github.com/kevinzakka/mink.git && cd mink
uv sync

uv run examples/arm_ur5e.py           # Linux
./fix_mjpython_macos.sh               # macOS, once
uv run mjpython examples/arm_ur5e.py  # macOS

More examples:

Citation

If you use mink in your research, cite it as follows:

@software{Zakka_Mink_Python_inverse_2026,
  author = {Zakka, Kevin},
  title = {{Mink: Python inverse kinematics based on MuJoCo}},
  year = {2026},
  month = oct,
  version = {1.4.0},
  url = {https://github.com/kevinzakka/mink},
  license = {Apache-2.0}
}
Contributing

Report bugs in the issue tracker (opens in a new tab). To submit a pull request, read the contributing guidelines (opens in a new tab).

Acknowledgements

mink is a direct port of Pink (opens in a new tab), which is built on Pinocchio (opens in a new tab). Stéphane Caron, the author of Pink, is a role model for open-source software in robotics. This library would not have been possible without his work and assistance throughout this project.

mink also adapts code from these libraries:

References

The Lie group code refers to numbered equations in A micro Lie theory for state estimation in robotics (opens in a new tab), Joan Solà, Jérémie Deray, and Dinesh Atchuthan, arXiv:1812.01537 (2018).

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