Forward kinematics

On this page 7

Forward kinematics (FK) is the calculation of the position and orientation of a robot’s end effector, or of any link, from known joint values and the fixed geometry of the links. In robotics manipulation, it answers the question: if every joint is at this angle or extension, where exactly is the tool?

For a serial robot arm, forward kinematics always has exactly one answer and can be computed directly, in microseconds on ordinary hardware. That makes it the foundation for displaying robot state, checking collisions, calibrating cells and solving the harder reverse problem, inverse kinematics, which finds joint values for a desired tool pose.

Forward kinematics treats a manipulator as a kinematic chain of rigid links connected by joints. Each joint contributes one variable: an angle for a revolute joint or a distance for a prismatic joint. The pose of each link relative to the previous one is expressed as a 4 × 4 homogeneous transformation matrix that combines a 3 × 3 rotation and a translation vector.

The end-effector pose follows by multiplying the transformations in order from the base to the tool: T(base→tool) = T1(q1) · T2(q2) · … · Tn(qn) · T(flange→tool). The final matrix gives the tool position in meters and its orientation, which can be converted to Euler angles, roll-pitch-yaw or a quaternion.

  1. Assign a coordinate frame to every link according to a chosen convention.
  2. Write the transformation for each joint as a function of its joint variable.
  3. Add fixed transforms for the robot mounting and the tool center point (TCP).
  4. Multiply all transforms to obtain the pose of the TCP in the world or base frame.

Conventions for describing robot geometry

The same arm can be described with different parameter conventions, and the results only match when frames are defined consistently. Mixing conventions is one of the most frequent causes of wrong FK results.

ConventionParameters per jointAdvantageLimitation
Standard Denavit-Hartenberg4 (θ, d, a, α)Compact and widely taughtIll-conditioned for nearly parallel joint axes
Modified (Craig) DH4, frame at the joint’s own axisCleaner for dynamics formulationsEasily confused with standard DH
Product of exponentialsScrew axis per jointNo frame placement rules, robustRequires screw theory background
URDF joint originsFull 6D offset plus axisDirect match to CAD and software toolsMore parameters, less compact
Common forward kinematics conventions

Robot software ecosystems typically store geometry in description files such as URDF, from which libraries compute FK for every link. Industrial controllers use the vendor’s own internal model, often with calibrated parameters that deviate slightly from nominal drawings.

Forward and inverse kinematics compared

Forward and inverse kinematics are mirror problems with very different difficulty. FK maps joint space to task space and is always well defined; inverse kinematics maps task space back to joint space and may have zero, several or infinitely many solutions.

AspectForward kinematicsInverse kinematics
InputJoint angles and displacementsDesired tool position and orientation
OutputTool poseJoint values
Number of solutionsExactly oneNone, several or infinitely many
ComputationDirect matrix productClosed form or iterative solving
Typical useState display, collision checks, simulationMotion commands in Cartesian space
Forward and inverse kinematics side by side

Iterative IK solvers call forward kinematics repeatedly, together with the Jacobian matrix, which relates joint velocities to tool velocities and is itself derived from the FK expressions. Grasp planning and pick and place tasks therefore rely on FK at every step, even when the user only specifies target poses.

Where forward kinematics is used in manipulation

Forward kinematics runs continuously in a robot system, usually at the same rate as the joint state updates. Its output appears in many places that users never associate with kinematics.

ApplicationWhat FK providesWhy it matters
Live TCP displayCurrent tool pose from encoder readingsOperators see where the tool is
Collision checkingPose of every link along a pathDetects contact with fixtures and the robot itself
Safety zonesLink and tool positions for zone monitoringEnables speed limits near defined areas
Camera mountingPose of a wrist cameraPlaces observed objects in robot coordinates
Simulation and digital twinsAnimated link poses from joint dataMirrors the real robot faithfully
CalibrationPredicted poses to compare with measurementsIdentifies geometric parameter errors
Practical applications of forward kinematics

Accuracy limits and common mistakes

Forward kinematics is exact mathematics, but its result is only as good as the geometric model and the joint measurements. The difference between computed and real tool position is the robot’s absolute accuracy error.

  • Nominal link lengths: manufacturing tolerances shift the tool by millimeters at full reach; kinematic calibration corrects this.
  • Joint offset errors: a wrong zero position on one axis rotates the entire chain beyond it.
  • Ignored compliance: gravity and payload bend links and gears, which rigid FK does not model.
  • Wrong TCP definition: a tool offset measured carelessly produces consistent but incorrect poses.
  • Unit and angle mix-ups: degrees versus radians, or millimeters versus meters, corrupt results silently.

Because small angular errors near the base are amplified by the lever arm, an error of 0.01 degree at the first joint moves a tool 1.5 m away by roughly 0.26 mm. Calibration therefore pays off most on large robots and long tools.

The simple explanation

Imagine your arm with your eyes closed. If you know how much your shoulder, elbow and wrist are bent, you can work out where your hand is. Forward kinematics is that calculation for a robot arm.

The robot knows the length of each part of its arm and reads the angle of each joint from its sensors. It combines these numbers step by step, from the base to the tool. The result is the exact spot and direction of its tool, which the robot needs before it can do anything useful or safe.

How it is used in practice

An automotive supplier installs a six-axis robot that applies adhesive beads to door panels. The cell software uses forward kinematics at 250 Hz to compute the pose of the dispensing nozzle from the joint encoders and compares it with the planned bead path.

During commissioning, the measured bead lay about 2 mm off the planned line at the far end of the panel. The team found that the tool center point offset had been entered from a drawing that did not match the mounted nozzle. After measuring the TCP with a four-point method and running a kinematic calibration of the arm, the FK prediction matched laser tracker measurements to within a few tenths of a millimeter. The bead now follows the seam along the whole panel, and the same FK model drives the collision checks for the clamping fixtures.