Manipulator Basics · Theory · Module 06 of 14
06 — Forward Kinematics
Forward kinematics multiplies the link transforms from the base to the tool. Work through it for four arms of increasing complexity, read position and orientation off the result, and see which joints move the tool the most.
FK is the one kinematics problem that always has a unique, exact answer. It runs inside every controller, simulator and collision checker, and every other algorithm in this section calls it.
Learning objectives
After this module you should be able to:
- Compute the tool pose of 2R and 3R planar arms both from geometry and from the DH product.
- Compute the position of a spatial 3-DOF arm and recognise its decoupled structure.
- Evaluate the forward kinematics of a 6-DOF arm and extract position and orientation from the result.
- Estimate how much a small joint error moves the tool, and explain why proximal joints matter most.
Conceptual explanation
Forward kinematics answers "given , where is the tool?" by multiplying, in order, the transforms of Module 05:
- start with the base transform (where the robot stands);
- multiply by each link transform , from joint 1 to joint n;
- multiply by the tool transform (the TCP relative to the flange).
The result is a 4×4 matrix. Its last column is the tool position; its upper-left 3×3 block is the tool orientation, whose columns are the tool's x, y and z axes in base coordinates. The intermediate products are the poses of every link frame: a simulator draws them, and a collision checker places link geometry with them.
Which joints matter most
A revolute joint turns everything beyond it about its axis. The tool moves by about (distance from the axis to the tool) × (angle change), so the joints nearest the base, which carry the longest lever arm, move the tool the most for a given angle error. A wrist joint near the tool barely moves the position but changes the orientation just as much. This is why encoder resolution and calibration matter most for the proximal joints.
Mathematical formulation
Planar 2R (closed form):
Spatial 3-DOF (waist, shoulder, elbow): the waist turns a vertical plane; inside it the shoulder and elbow form a 2R arm of radius and height :
Sensitivity: for a small joint change, the tool displacement is
where is the distance from axis i to the tool point. The full Jacobian is the subject of Module 08.
Diagrams
Worked examples
Example 1: planar 2R
Links m, :
The tool heading is 75°. The engine's DH product gives the same numbers.
Example 2: planar 3R
Links m, . The cumulative angles are 0°, 90° and 0°: the first link points along x, the second straight up, the third along x again. So
Reasoning about cumulative angles like this is a quick sanity check on any planar FK.
Example 3: spatial 3-DOF arm
Waist, shoulder and elbow of the engine's 4-DOF arm: , , m. At :
The DH product gives the same point. The decoupling (waist sets the plane, shoulder and elbow set the point in the plane) is also what makes its IK easy.
Example 4: a 6-DOF arm
The engine's 6-DOF arm (DH table in Lab 03, a 0.10 m tool) at :
The tool is at m. Its z axis (third column) is : the tool points outwards and down. As ZYX Euler angles the orientation is yaw , pitch , roll .
Example 5: which joint error moves the tool most?
Add a 0.1° error to one joint at a time of the 6-DOF arm in Example 4 and recompute FK exactly:
| Joint | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Tool displacement (mm) | 1.01 | 1.03 | 0.78 | 0.22 | 0.31 | 0.00 |
The shoulder (joint 2) and waist (joint 1), with lever arms of several tenths of a metre, dominate. Joint 6 turns about the tool axis itself and does not move the tool point at all; it changes only the orientation. Try it yourself in Lab 04.
Interactive experiment
Interactive 2R forward kinematics (needs JavaScript).
Real-world applications
- Controllers compute FK every cycle to report the tool pose, check safety zones and log what the robot did.
- Simulation and digital twins animate the robot from logged or planned joint values.
- Collision checking places every link's geometry with the intermediate transforms (Module 13).
- ROS 2: robot_state_publisher computes FK from the URDF and joint states and publishes every link frame to TF2.
Common mistakes
Multiplying the link transforms in reverse order
FK is A₁A₂…Aₙ, base first. Reversing the order gives a different matrix, not just a transposed one.
Reading orientation from the wrong part of the matrix
The tool axes are the columns of the 3×3 block, not the rows. The rows are the base axes seen from the tool.
Mixing degrees and radians
Trigonometric functions take radians. A 90 passed as degrees is 90 rad, which is about 116.6° after wrapping.
Ignoring the tool transform
FK to the flange is not FK to the fingertips; with a 100 mm tool the error is up to 100 mm.
Key takeaways
- FK = base transform × link transforms in order × tool transform.
- The last column is position; the 3×3 block holds the tool axes as columns.
- Intermediate products give every link frame, used for drawing and collision checking.
- Proximal joints move the tool point the most per degree; the last joint often changes only orientation.
Knowledge check
Write an answer to each question, then reveal the explanation. Your answers stay in your browser.
Question 1
A 2R arm with L₁ = L₂ = 0.5 m is at q = (90°, −90°). Where is the tool?
Explanation
Link 1 points up to (0, 0.5); the cumulative angle of link 2 is 0°, so it points along x: the tool is at (0.5, 0.5) m.
Question 2
Why does an error in joint 1 usually move the tool more than the same error in joint 5?
Explanation
Displacement ≈ distance from the axis to the tool × angle error. Joint 1 is far from the tool; a wrist joint is close.
Question 3
Where in the 4×4 FK result do you find the direction the tool points?
Explanation
In the third column of the rotation block: the tool z axis expressed in the base frame.
Question 4
What is the intermediate product ⁰T₃ useful for?
Explanation
It is the pose of link 3: used to draw that link, place its collision geometry, or compute the Jacobian columns.
Practise it in the labs
Then test yourself in practice exercises and challenge mode.
References and further reading
- M. W. Spong, S. Hutchinson and M. Vidyasagar, Robot Modeling and Control, 2nd ed., Wiley, 2020, chapter 3.
- B. Siciliano, L. Sciavicco, L. Villani and G. Oriolo, Robotics: Modelling, Planning and Control, Springer, 2009, chapter 2.