Inverse Kinematics

Simulation
Introduced by
Pieper, D. L. et al.
Year
1968
Type
Problem-solving method for robot control
Family
Numerical computation

What does it do?

Inverse kinematics is the problem of finding the joint values of an articulated mechanism that place its end-effector at a desired position and orientation.

It is the reverse of forward kinematics, which maps joint values to end-effector pose. In robot control, IK converts a task-space target into the joint commands the controller must execute.

The intuition behind the method

Forward kinematics is a direct mapping from joint values to pose. Inverse kinematics is generally harder: a target pose may be reached by several joint configurations, or by none. Some robot geometries admit closed-form solutions, while others require iterative numerical methods whose result depends on the starting estimate. The difficulty increases near singularities, where the end-effector loses degrees of freedom, and when joint limits or collision constraints must be respected.

History

Inverse kinematics became an important problem in robot control as manipulators came under computer control. Pieper's 1968 Stanford dissertation, 'The kinematics of manipulators under computer control', is the work usually cited for the closed-form condition discussed under limitations. Subsequent textbook treatments, such as Craig (2005) and Spong, Hutchinson and Vidyasagar (2006), cover analytical solutions for standard robot architectures as well as iterative Jacobian-based and gradient-based methods for general geometries.

When to use it

Choose inverse kinematics when a task is specified in Cartesian space (a target position and orientation) and the controller needs joint commands, as in pick-and-place, path following, or teleoperation. Prefer a closed-form solver when the robot geometry admits one and fast, deterministic results are needed. Do not rely on IK alone when the target may be unreachable or lies near a singularity: check reachability first and define a fallback in advance, such as moving to the closest reachable pose. If joint limits or obstacles must be enforced directly, use a constrained numerical formulation rather than an unconstrained closed-form solution.

Limitations and considerations

  • Closed-form solutions exist only for certain geometries. For a six-revolute-joint serial arm, Pieper's 1968 condition (three consecutive joint axes intersect or are parallel) is commonly cited as a sufficient condition for a closed-form solution. Other geometries may require numerical methods or case-specific analysis.
  • Several joint configurations can reach the same pose, so a selection rule is required, and that choice affects the continuity of the resulting motion.
  • Near singularities, where the end-effector loses degrees of freedom, the Jacobian becomes ill-conditioned. The joint velocities needed for a given end-effector motion then grow, and numerical solvers become unstable unless the update is regularised.
  • Iterative solvers depend on the initial guess and may fail to converge to the desired pose.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Lets the programmer specify the end-effector goal in Cartesian coordinates instead of computing each joint value by hand.
  • For robots with a closed-form solution, joint values are computed directly without iteration, which suits real-time control.
  • Numerical solvers apply to geometries without a closed-form solution, because they need only the forward kinematic model and its Jacobian.
  • Joint limits can be incorporated through constrained numerical formulations.

Applications

  • Industrial robot programming: specifying pick-and-place locations for assembly robots
  • Path planning: computing joint trajectories that move the end-effector along a desired path
  • Teleoperation: converting human operator commands in task-space to robot joint commands
  • Motion capture and animation: converting captured end-effector poses to joint angles for playback or animation

How it works

How it works

1

Specify the target end-effector pose (position and orientation), the robot's kinematic model (link dimensions and joint types), and any constraints such as joint limits or collision avoidance.

2

Check whether the target lies within the reachable workspace of the kinematic model, meaning the set of end-effector poses that the joint limits permit. If it does not, apply the fallback defined in advance rather than solving. If it does, determine whether the robot geometry admits a closed-form solution. This decides whether an analytical or a numerical solver is used.

3

For a closed-form solution, reduce the forward kinematic equations to algebraic relations that can be solved for each joint. For a numerical solver, define the pose-error function as the difference between the target pose and the pose produced by forward kinematics at the current joint values. Define the update rule, which maps the pose error to a joint increment through the Jacobian of the forward kinematics, and choose the initial guess.

4

Solve with the chosen method: direct algebra for simple planar arms; Jacobian-based iteration, which repeatedly computes the pose error at the current joint values and updates the joints using the pseudoinverse of the Jacobian until the error falls below a chosen tolerance; or constrained gradient-based optimisation when joint limits must be enforced. Near a singularity, replace the plain pseudoinverse with a damped (regularised) least-squares update so that the joint increments stay bounded.

5

Collect the candidate joint solutions and discard any that violate joint limits or collide with the environment. Among the remaining solutions, prefer one close to the current configuration to avoid abrupt joint motion, and confirm by forward kinematics that the pose error is acceptable.

Common pitfalls

  • Spending effort on a closed-form derivation for a geometry that lacks the required structure, when a numerical solver would be practical sooner.
  • Solving for a target outside the reachable workspace without checking first, so the solver returns a non-converged or misleading result.
  • Choosing among multiple solutions only by how close they are to the target pose, which can cause abrupt joint jumps between consecutive trajectory points.

Frequently asked questions

Why does my robot have multiple solutions to reach the same target?

Redundancy (more than 6 DOF) or specific robot geometries can create several configurations with the same end-effector pose. This is useful: you can choose the solution that avoids obstacles or joint limits. With redundancy, the null space of the Jacobian can be used to adjust joint angles without changing the end-effector position.

What is a singularity and why does it cause problems?

A singularity is a configuration where the robot loses one or more degrees of freedom, for example at full arm extension or when joint axes align. At a singularity the Jacobian loses rank. Near it, the joint velocities required for a given end-effector velocity grow without bound. Trajectories should therefore be planned to avoid passing through singularities. Numerical solvers should also use a damped least-squares update near singularities instead of a plain pseudoinverse, and trajectories should be checked for proximity to singularities.

Should I use analytical or numerical IK?

Use analytical (closed-form) IK if your robot geometry admits a solution; it is fast and deterministic. Use numerical methods for complex geometries or when constraints complicate the problem. Hybrid approaches (analytical where possible, numerical fallback) are common in practice.

How do I handle joint limits in IK?

If an IK solution violates joint limits, use a constrained optimisation approach: minimise the pose error while keeping all joint angles within their limits. If the exact target is infeasible, this produces the best-effort solution.

Related methods

Sources

  1. Craig, J. J. (2005). Introduction to Robotics: Mechanics and Control (3rd ed.). Pearson Education.

    ISBN: 0-13-123629-6
  2. Spong, M. W., Hutchinson, S., & Vidyasagar, M. (2006). Robot Modeling and Control. John Wiley & Sons.

    ISBN: 0-471-64990-2
  3. Pieper, D. L. (1968). The kinematics of manipulators under computer control. Ph.D. Dissertation, Stanford University.

    Open publication reference