TactivergeLite

Lite / Intelligent Robotic Systems / Week 15

Forward kinematics as a chain of transforms

Add a third joint, a fourth, a seventh. The trigonometry gets ugly fast. What stays simple?

About 35 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

The two-link formula is neat, but real arms have six or seven joints. Writing FK as a chain of identical building blocks, 'rotate by θᵢ, then slide along the link by Lᵢ', scales to any number of joints and also tells you the hand's orientation for free. It's how robot software actually does it.

Predict

In the chain T = Rot(θ1)·Trans(L1)·Rot(θ2)·Trans(L2), what is the hand frame's total rotation?

  1. θ2
  2. θ1 + θ2
  3. θ1 × θ2
  4. It depends on L1 and L2
Guess first, then reveal

θ1 + θ2. In the plane, rotations in a chain add, and translations don't change orientation. That's the same 'absolute angle' fact from the trigonometric FK, now coming out of matrices.

Discover

Open the Robotics Workbench. Build a two-link arm, then add a third link. For one pose, write the chain of three 'rotate, then move along the link' steps and multiply them by hand (or in Python) to predict the tool tip and its angle. Compare with the workbench's readout.

What the interactive shows (text version)

In the Robotics Workbench you assemble links and joints and read the tool tip's position and angle. Without it: for joint angles 30°, 60° and −45° with links 0.4, 0.3 and 0.1 m, the chain of three rotate-then-move blocks puts the tip at about (0.417, 0.571) m, facing 45°.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Watch for the hand frame being found by multiplying one transform per joint. (University-level notation; focus on the idea, not the symbols.)

A short university worked example that finds where a robot's hand ends up from its joint angles.

“Modern Robotics, Chapter 4: Forward Kinematics Example” by Northwestern Robotics (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

One block per joint

Each joint contributes A(θᵢ, Lᵢ) = Rot(θᵢ)·Trans(Lᵢ): turn by the joint angle, then move along the new x axis by the link length. The hand's pose in the base frame is the product T_base←hand = A₁·A₂·…·Aₙ. The last column gives the position; the top-left block gives the orientation.

Same answer, more information

For two links, multiplying out reproduces x = L1 cos θ1 + L2 cos(θ1 + θ2) exactly (see the derivation). But the matrix also hands you the orientation of the hand, θ1 + θ2, and the position of every intermediate joint along the way: just stop the product early.

Why engineers prefer chains

The chain is systematic: the same block, repeated. It works unchanged for any number of joints, and in 3D (with 4×4 matrices) for real industrial arms. Conventions such as Denavit–Hartenberg parameters are a standard recipe for writing each block. Computers multiply the matrices; humans just have to get the chain right.

Explain it another way

Intuitive

Imagine a little turtle walking along the arm: at each joint it turns by the joint angle, then walks the length of the link. Wherever it ends up, facing whichever way, is the hand's pose.

Technical

Planar serial FK is a product of exponentials in SE(2): T(θ) = Π Rot(θᵢ)Trans(Lᵢ). The partial products give each joint frame, which is also what's needed later to compute Jacobians.

Mathematical

θ = (30°, 60°, −45°), L = (0.4, 0.3, 0.1): absolute angles 30°, 90°, 45°. Tip = 0.4(0.866, 0.5) + 0.3(0, 1) + 0.1(0.707, 0.707) = (0.346 + 0 + 0.071, 0.2 + 0.3 + 0.071) = (0.417, 0.571) m, facing 45°.

Applied

A painting robot needs its spray nozzle not just at a point but pointing at the surface. The orientation block of the FK chain is what lets the controller check the nozzle angle.

Derivation: Two-link FK from transforms
  1. Joint i rotates by θᵢ: Rot(θ) = [cos θ −sin θ 0; sin θ cos θ 0; 0 0 1]. Link i slides along its own x axis: Trans(L) = [1 0 L; 0 1 0; 0 0 1].

  2. One joint-plus-link block: A(θ, L) = Rot(θ)·Trans(L) = [cos θ −sin θ L cos θ; sin θ cos θ L sin θ; 0 0 1].

  3. The hand frame is T = A(θ1, L1)·A(θ2, L2). Its rotation block is R(θ1)R(θ2) = R(θ1 + θ2).

  4. Its translation column is R(θ1)·(L2 cos θ2, L2 sin θ2) + (L1 cos θ1, L1 sin θ1).

  5. Using the angle-addition formulas, R(θ1)·(L2 cos θ2, L2 sin θ2) = L2(cos(θ1 + θ2), sin(θ1 + θ2)). So the hand is at (L1 cos θ1 + L2 cos(θ1+θ2), L1 sin θ1 + L2 sin(θ1+θ2)): the familiar formula.

  6. A third link just multiplies one more block: T = A(θ1, L1)·A(θ2, L2)·A(θ3, L3), with orientation θ1 + θ2 + θ3.

Worked example 1

Use the block form to find the elbow position (the end of link 1) for θ1 = 60°, L1 = 0.5 m.

A(60°, 0.5) has translation column (0.5 cos 60°, 0.5 sin 60°) = (0.25, 0.433) m. That's the elbow, and the frame there is turned 60°.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

°

m

Practice 4. Why is each block Rot(θ)·Trans(L) and not Trans(L)·Rot(θ)?

Apply it

In Python, write a function that multiplies a list of 3×3 blocks A(θᵢ, Lᵢ) and returns the tip position and orientation. Verify it against your two-link fk() and then use it on a three-link arm in the Robotics Workbench.

Reflect

What would change if one joint were a sliding (prismatic) joint instead of a rotating one? Which block would you replace?

Write your answer on paper or in your own notes. Lite never stores what you write.

Go further

← Forward kinematics: where is the hand?Mapping the workspace: everywhere the hand can go →