Kinetica Inverse Kinematics

Target TCP pose → all joint solutions found, residuals, joint limits and reachability.

A library robot, or choose a custom DH table, URDF or Kinetica robot JSON.

mm
mm
mm
More options
DH table (custom)

One row per joint. Lengths in mm, angles in degrees. For revolute joints θ is the zero offset, for prismatic joints d is.

DH table (custom)
#Typea (mm)α (deg)d (mm)θ (deg)minmaxv max (/s)a max (/s²)
1
2
3
4
5
6

Used when Robot is “URDF” or “Kinetica robot JSON”. URDF subset: links with box/cylinder/sphere, revolute/continuous/prismatic/fixed joints.

x, y, z (mm), roll, pitch, yaw (deg) in the flange frame, e.g. “0, 0, 150, 0, 0, 0”. Empty = robot default.

deg
deg
deg

Joint values the solutions are sorted by (closest first). Empty = home pose.

Seeds the deterministic restart generator, so the same input always gives the same solutions.

Try an example: · · ·

More about this tool

Part of Kinetica

How it works

Solves the inverse kinematics of a serial robot (DH table, URDF subset or library robot) for a target TCP pose with damped least squares from several deterministic seeds, plus closed-form solutions for planar 2-link arms and SCARAs. Lists every distinct solution with its residual, joint-limit and singularity status, and explains why a target is unreachable.

  • Error e = [Δp / L; Δφ] with Δφ the rotation vector from current to target orientation and L the arm’s characteristic length, restricted to the task rows the robot can actually control (e.g. x, y, z, yaw for a SCARA; x, y for a planar arm).
  • Damped least squares step Δq = Jᵀ(J·Jᵀ + λ²I)⁻¹e with adaptive damping λ (decrease after an improving step, increase after a failed one), step-size limit 0.5 rad, and projection onto the joint limits (revolute joints wrap by 2π when the range allows).
  • Restarts: the preferred configuration, the home pose, branch seeds for arms (A1 and A1 ± 180° × a grid over the A2/A3 ranges: shoulder front/back, elbow up/down), then pseudo-random configurations from a seeded mulberry32 generator; for 6-axis wrists the flip of every solution (A4 + 180°, −A5, A6 + 180°) is tried too. Converged solutions (position residual ≤ 1e-6 mm, orientation ≤ 1e-8 rad) are kept once per physical configuration: joint values a multiple of 360° apart count as the same solution and the in-limit variant closest to the preferred configuration is shown. Solutions are sorted by distance to the preferred configuration.
  • Closed forms: planar 2R and SCARA use the law of cosines (two elbow branches), then FK verifies and a short DLS polish removes any remaining residual.
  • Unreachable targets report the distance from the first joint versus the skeleton length (upper bound of reach) and the closest configuration found.

Kinematic simulation for planning and teaching. It is not a certified safety function: verify every program on the real controller with reduced speed and the cell safety system active.

Sources

Part of Kinetica

  • Kinetica Robot motion studio

    Simulate robot arms: kinematics, trajectories, collisions, program export.

    Open Kinetica

Related tools

How to use Kinetica Inverse Kinematics

Find every joint solution that puts a robot's tool at a target position and orientation, with residuals, joint-limit checks and a clear reason when a point is unreachable.

What it is for

You know where the tool has to go: a pick point 700 mm in front of the robot, gripper pointing down. Which joint angles get it there? That's inverse kinematics (IK). Unlike forward kinematics, it can have several answers (elbow up or down, wrist flipped) or none at all, when the point is out of reach or the orientation is impossible.

This tool solves IK for library robots, custom DH tables, a URDF subset or Kinetica robot JSON. It uses closed-form formulas for planar 2-link arms and SCARAs, and a damped least-squares search from several deterministic starting points for everything else. Each distinct solution comes with its position and orientation residual, joint-limit status and a singularity indicator, sorted by closeness to a preferred configuration. If nothing works, it tells you why. The same input always gives the same result, because the random restarts are seeded.

Worked example

Planar arm, elbow up and elbow down. Teach-2 arm, target (350, 200), mode Position only. Two analytic solutions:

Worked example
#q1q2residual
1−8.4832°86.1774°2.8e-14 mm
267.973°−86.1774°6.4e-14 mm

Same point, mirrored elbows. The target is 403.1 mm away and the arm can reach 550 mm.

Six-axis arm, tool pointing down at (700, 200, 600) mm with roll 180°: 2 solutions, the best being [15.9454, 1.604, 40.8931, 0, 47.5029, 15.9454] with a residual of 6.25e-8 mm. Both share A1–A3 and differ only in the wrist: A4 at 0 or 180° with A5 flipped (47.5° vs −47.5°). Joint values one full turn apart (A4 −180° vs +180°, A6 + 360°) are the same pose and are listed once, in the variant closest to your preferred configuration. The other shoulder and elbow branches would need A1–A3 outside their limits here. Point the tool forward (pitch 90°) at (600, 300, 1300) mm instead and you get 4 solutions: the arm in front at A1 = 30.7128° and reaching over backwards at A1 = −149.2872°, each with both wrist flips.

Out of reach. A UR5-style cobot asked for (2000, 0, 300): "Target is 2022.4 mm from the first joint but the arm reaches at most about 1192.5 mm." You also get the closest configuration it found, which still misses by 1097.6 mm.

How to read the result

  • Solutions table: one row per distinct solution, closest to your preferred configuration first (or to home if that's empty).
  • Position / rotation residual: how far the solution's TCP is from the target. Anything around 1e-6 mm or smaller is exact for practical purposes.
  • Limits: "ok" or the joints out of range. σmin/σmax near 0 warns of a singularity.
  • Method: analytic (closed form) or numeric (iterative search).
  • Distance from joint 1 vs skeleton reach: a quick feasibility check. The reach is an upper bound, so a target inside it may still be unreachable in that orientation.

Tips and common mistakes

  • Choose the task mode. Automatic only enforces what the robot can control. A SCARA ignores roll and pitch, and the tool warns: "This robot controls only x, y, z, rz."
  • Set a preferred configuration to get the solution nearest your current pose. That avoids big, surprising joint moves between points.
  • Solutions 360° apart on one axis are the same pose. Pick the one that keeps cables and joint limits comfortable.
  • Remember the tool offset. Without it you're solving for the flange, not the gripper tip.
  • No solution for a reachable-looking point? Try another orientation or more Random restarts.

FAQ

Why are there several solutions for one point?

A 6-axis arm can often reach the same pose with the shoulder in front or behind, the elbow up or down, and the wrist flipped. The search tries each of these branches on purpose and lists those within the joint limits. Joint values a full turn apart count as one solution.

What does "residual" mean?

The remaining distance between the solution's TCP and your target, in mm and degrees. Tiny values mean it's exact.

Why is my target unreachable?

Either it's farther from the first joint than the arm can stretch, or the requested orientation can't be combined with that position. The tool reports the distance and the closest configuration.

Is the result the same every time?

Yes. The random restarts use a fixed seed (7 by default), so identical inputs give identical solutions.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://kineticainversekinematics.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://kineticainversekinematics.usefulweb.site/mcp · tool name kinetica_inverse_kinematics
Example request
curl -s -X POST https://kineticainversekinematics.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"robot":"kx6-1400","x":700,"y":200,"z":600,"roll":180,"pitch":0,"yaw":0}'
Feedback · ideas & bug reports welcome