Skip to content

Software

TRAC-IK

By TRACLabs, United States (checked on github.com/traclabs (opens in a new tab)), from github.com/traclabs/trac_ik (opens in a new tab)

  • Robot arms and industry
  • Library
  • BSD-3-Clause

TRAC-IK is a ROS-based inverse kinematics solver for robot arms that handles joint limits better than KDL's default Jacobian-based solver.

Facts

GitHub stars
16read on 22 Nov 2026
Last update
2 Jun 2026Newest commit on rolling
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate

Checked on GitHub on 22 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE.txt (opens in a new tab) (BSD-3-Clause) at commit 90162ac (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Runs two IK solvers concurrently: a KDL Newton-based solver with random jumps to escape joint-limit local minima, and an SQP nonlinear optimizer.
  • Returns as soon as either solver converges, with optional distance and manipulability constraints to pick a best solution.
  • Acts as a drop-in replacement for KDL's IK functions for KDL chains, and as a MoveIt! kinematics plugin.
  • Includes a Python wrapper and examples; benchmarks show higher solve rates than KDL across many robot arms.
  • Not thread safe, since the underlying KDL library uses static internals, so only one instance should run per process.
  • Does not check solutions for self-collisions based on mesh geometry.

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

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Maintained, last commit on 2 Jun 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

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

Files and versions

Facts read at commit 90162ac

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 TRACLabs, at commit 90162ac, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

The ROS packages in this repository were created to provide an alternative Inverse Kinematics solver to the popular inverse Jacobian methods in KDL. Specifically, KDL's convergence algorithms are based on Newton's method, which does not work well in the presence of joint limits --- common for many robotic platforms. TRAC-IK concurrently runs two IK implementations. One is a simple extension to KDL's Newton-based convergence algorithm that detects and mitigates local minima due to joint limits by random jumps. The second is an SQP (Sequential Quadratic Programming) nonlinear optimization approach which uses quasi-Newton methods that better handle joint limits. By default, the IK search returns immediately when either of these algorithms converges to an answer. Secondary constraints of distance and manipulability are also provided in order to receive back the "best" IK solution.
Note: TRAC-IK is built on top of the KDL library, which is not thread safe (there's some internals that I think use static variables). Thus, you should not use multiple instances of TRAC-IK in the same process.

This repo contains 5 ROS packages:

As of v1.4.5, this package is part of the ROS Kinetic binaries: sudo apt-get install ros-noetic-trac-ik (or kinetic, indigo or jade). Starting with v1.4.8, this has been released for ROS Lunar as well. Melodic packages have been released with 1.5.0. Noetic with 1.6.0

A detailed writeup on TRAC-IK can be found here:

Humanoids-2015 (opens in a new tab) (reported results are from v1.0.0 of TRAC-IK, see below for newer results).

Some sample results are below:

Orocos' KDL (inverse Jacobian w/ joint limits), KDL-RR (our fixes to KDL joint limit handling), and TRAC-IK (our concurrent inverse Jacobian and non-linear optimization solver; Speed mode) are compared below.

IK success and average speed as of TRAC-IK tag v1.5.1. All results are from 10,000 randomly generated, reachable joint configurations. Full 3D pose IK was requested at 1e-5 Cartesian error for x,y,z,roll,pitch,yaw with a maximum solve time of 5 ms. All IK queries are seeded from the chain's "nominal" pose midway between joint limits.

Note on success: Neither KDL nor TRAC-IK uses any mesh information to determine if valid IK solutions result in self-collisions. IK solutions deal with link distances and joint ranges, and remain agnostic about self-collisions due to volumes. Expected future enhancements to TRAC-IK that search for multiple solutions may also include the ability to throw out solutions that result in self collisions (provided the URDF has valid geometry information); however, this is currently not the behaviour of any generic IK solver examined to date.

Note on timings: The timings provided include both successful and unsuccessful runs. When an IK solution is not found, the numerical IK solver implementations will run for the full timeout requested, searching for an answer; thus for robot chains where KDL fails much of the time (e.g., Jaco-2), the KDL times are skewed towards the user requested timeout value (here 5 ms).

ChainDOFsOrocos' KDL solve rateOrocos' KDL Avg TimeKDL-RR solve rateKDL-RR Avg TimeTRAC-IK solve rateTRAC-IK Avg Time
ABB IRB120639.41%3.08ms98.51%0.33ms99.96%0.24ms
ABB Yumi 'single arm'777.35%1.43ms91.31%0.87ms99.70%0.42ms
Atlas 2013 arm675.54%1.32ms97.24%0.34ms99.99%0.20ms
Atlas 2015 arm776.22%1.44ms94.12%0.71ms99.80%0.32ms
Baxter arm761.43%2.15ms90.78%0.91ms99.83%0.37ms
Denso VS-068627.95%3.67ms98.32%0.35ms99.96%0.26ms
Fanuc M-430iA/2F521.08%3.98ms88.69%0.84ms99.93%0.36ms
Fetch arm793.28%0.65ms94.72%0.63ms99.98%0.24ms
Franka Emika Panda762.02%2.11ms93.21%0.79ms99.88%0.37ms
Jaco2626.25%3.77ms97.85%0.47ms99.92%0.35ms
KUKA LBR iiwa 14 R820738.09%3.31ms95.15%0.64ms99.92%0.28ms
KUKA LWR 4+768.22%1.82ms96.26%0.53ms99.98%0.23ms
Motoman CSDA10F 'torso/1-arm'853.58%2.73ms96.08%0.60ms99.96%0.32ms
Motoman MH180668.46%1.65ms99.39%0.22ms99.99%0.18ms
NASA Robonaut2 arm786.89%0.96ms95.23%0.64ms99.85%0.30ms
NASA Robonaut2 'grasping leg'761.70%2.21ms88.77%1.00ms99.91%0.40ms
NASA Robonaut2 'leg' + waist + arm1598.42%0.67ms98.58%0.66ms99.83%0.57ms
NASA Robosimian arm762.10%2.33ms99.88%0.28ms99.97%0.30ms
NASA Valkyrie arm745.78%2.95ms92.34%1.11ms99.90%0.37ms
PR2 arm784.70%1.26ms88.82%1.15ms99.96%0.31ms
Schunk LWA4D768.57%1.79ms97.26%0.43ms100.00%0.23ms
TRACLabs modular arm779.59%1.28ms96.11%0.54ms99.99%0.27ms
Universal UR3617.11%4.18ms89.08%0.77ms98.60%0.45ms
UR5616.52%4.21ms88.58%0.74ms99.17%0.37ms
UR10614.90%4.29ms88.63%0.74ms99.33%0.36ms

Feel free to email TRACLabs Robotics (opens in a new tab) if you have any issues.

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