Skip to the content
FixTheRobot Explore Robotics / Manipulator Basics / Theory / 04

Manipulator Basics · Theory · Module 04 of 14

04 — Robot Kinematics Fundamentals

Kinematics is geometry without forces: how the joint values fix the pose of the tool. Meet the two directions of the problem, the chain of transforms that solves the forward one, and the first look at how joint motion turns into tool motion.

  • Intermediate
  • About 6 minutes to read
  • 2 linked labs

Given the joint values, where is the tool? Given where the tool must be, what should the joints be? These two questions, forward and inverse kinematics, are the core of manipulator software.

Learning objectives

After this module you should be able to:

  • Define configuration variables, joint coordinates and Cartesian (task) coordinates.
  • Write the end-effector pose of a serial chain as a product of link transforms.
  • Explain why forward kinematics always has one answer and inverse kinematics may have none, several or infinitely many.
  • Relate small joint motions to small tool motions, as a preview of the Jacobian.

Conceptual explanation

The configuration variables of a serial manipulator are its joint values q1…qnq_1 \dots q_n: the minimal set of numbers that fixes where every point of the robot is. They are the robot's joint coordinates. The tool's pose is usually described in Cartesian coordinates: a position (x,y,z)(x, y, z) and an orientation (a rotation matrix, Euler angles or a quaternion; see Module 03).

A kinematic chain is a sequence of links joined by joints. In a serial manipulator the chain is open: each joint moves everything after it. Attaching a frame to each link turns the chain into a product of transforms. Each factor depends on one joint value, and the product from the base to the tool is the tool pose.

A kinematic chainBase, joints and links in series, with the transforms multiplied from base to tool.baseframe 0link 1frame 1link 2frame 2toolframe EA1(q1)A2(q2)A₃(q₃)·T_tool⁰T_E(q) = A₁(q₁) A₂(q₂) A₃(q₃) T_tool
A serial chain as a product of transforms: each link transform depends on one joint variable, and the tool transform is constant.

Forward and inverse kinematics

The two directions of the kinematics problem.
Forward kinematics (FK)Inverse kinematics (IK)
QuestionJoint values → tool poseTool pose → joint values
Number of answersAlways exactly oneNone, one, several or infinitely many
MethodMultiply the link transformsGeometry, algebra or numerical iteration
CostCheap and exactAnalytic for special designs, iterative in general
Used forDisplay, simulation, collision checking, sensing the tool poseCommanding the tool to a pose, Cartesian paths

Joint-space motion and task-space motion

Moving the joints in a straight line from qaq_a to qbq_b moves the tool along a curve, not a straight line. Moving the tool in a straight line needs joint motions that are generally non-linear in time. Which space you plan in is a design choice (Module 10). Joint-space motion is simple and always respects joint limits along the way; task-space motion controls exactly where the tool goes. For small motions the link between the two is linear: the Jacobian J(q)J(q) of Module 08 maps joint velocities to tool velocities.

Mathematical formulation

For a serial chain with link transforms Ai(qi)A_i(q_i), a fixed base transform and a fixed tool transform:

Forward kinematics of a serial chain
WTE(q)=Tbase  A1(q1) A2(q2)⋯An(qn)  Ttool{}^{W}T_{E}(q) = T_{\text{base}}\; A_1(q_1)\, A_2(q_2) \cdots A_n(q_n)\; T_{\text{tool}}

For a planar 3R arm the product collapses to sums of link vectors:

Planar 3R forward kinematics
x=∑i=13Licos⁡(∑k≤iqk),y=∑i=13Lisin⁡(∑k≤iqk),ϕ=q1+q2+q3x = \sum_{i=1}^{3} L_i \cos\Big(\sum_{k\le i} q_k\Big), \quad y = \sum_{i=1}^{3} L_i \sin\Big(\sum_{k\le i} q_k\Big), \quad \phi = q_1 + q_2 + q_3

Inverse kinematics asks for qq such that f(q)=xdf(q) = x_d. A first-order change obeys

Small motions
δx≈J(q) δq,J(q)=∂f∂q\delta x \approx J(q)\,\delta q, \qquad J(q) = \frac{\partial f}{\partial q}

which is the starting point of every numerical IK method (Module 07).

Worked examples

Forward kinematics of a planar 3R arm

The engine's planar 3R arm has links L=(0.40,0.30,0.15)L = (0.40, 0.30, 0.15) m. At q=(20°,40°,−30°)q = (20°, 40°, -30°) the cumulative angles are 20°, 60° and 30°, so

x=0.40cos⁡20°+0.30cos⁡60°+0.15cos⁡30°=0.656 mx = 0.40\cos 20° + 0.30\cos 60° + 0.15\cos 30° = 0.656\ \text{m}
y=0.40sin⁡20°+0.30sin⁡60°+0.15sin⁡30°=0.472 m,ϕ=30°y = 0.40\sin 20° + 0.30\sin 60° + 0.15\sin 30° = 0.472\ \text{m}, \qquad \phi = 30°

The engine's product of DH transforms gives (0.656,0.472)(0.656, 0.472) m and a heading of 30.0°30.0°: the same numbers.

A small joint change

Turn joint 1 by δq1=0.01\delta q_1 = 0.01 rad (0.57°). The first-order estimate from the Jacobian is δx≈(−0.0047,0.0066)\delta x \approx (-0.0047, 0.0066) m. Recomputing FK exactly gives (−0.0047,0.0065)(-0.0047, 0.0065) m. The two differ by about 0.03 mm, a tiny fraction of the 8 mm motion, because the error of the linear estimate is second order in δq\delta q. Joint 1 moves the tool along a circle about the base, perpendicular to the line from the base to the tool.

One position, two configurations

For a 2R arm (0.4 m and 0.3 m), the point (0.5,0.3)(0.5, 0.3) m is reached by elbow up, q=(59.5°,−68.0°)q = (59.5°, -68.0°) and elbow down, q=(2.5°,68.0°)q = (2.5°, 68.0°). FK maps each of them to the same point. This is why IK must choose a branch.

Interactive experiment

Interactive 2R inverse kinematics (needs JavaScript).

Drag the target: inside the ring there are two configurations (elbow up and elbow down), on its edges one, and outside none.

Real-world applications

  • Robot controllers run FK at every control cycle to report the tool pose and to monitor safety zones.
  • Offline programming and simulation tools use FK to animate and collision-check robot programs before they reach the cell.
  • Jogging in "world" or "tool" mode on a teach pendant solves IK (or its velocity form) continuously, so the tool moves along the axes you press.

Practise FK in Lab 04 and IK in Lab 05.

Common mistakes

Expecting straight joint moves to give straight tool paths

Joint interpolation gives curved tool paths. If the tool must follow a line, plan in Cartesian space and solve IK along it.

Assuming IK has one answer

Even a 2R arm has two solutions for most targets. A 6-DOF arm can have up to 16, and a redundant arm has infinitely many.

Leaving out the base or tool transform

FK to the flange is not FK to the tool. Getting the TCP wrong by 10 mm moves every taught point by up to 10 mm.

Using the first-order estimate for large motions

δx ≈ J δq holds only for small δq. For large steps, recompute FK or iterate.

Key takeaways

  1. The configuration q is the set of joint values; the tool pose is described in Cartesian coordinates.
  2. FK is a product of link transforms and always has exactly one answer.
  3. IK inverts that map and may have no answer, several, or infinitely many.
  4. Joint-space and task-space motion differ; the Jacobian links them for small motions.

Knowledge check

Write an answer to each question, then reveal the explanation. Your answers stay in your browser.

Question 1

Why does forward kinematics always have exactly one solution?

Explanation

Each joint value fixes its link transform uniquely, and a product of matrices has one value. Every configuration places the tool in exactly one pose.

Question 2

A planar 3R arm must put its tool at (x, y) with any heading. How many solutions are there typically?

Explanation

Infinitely many: three joints against two constraints leaves a one-parameter family. Each heading in a range gives up to two solutions (elbow up and down) for the wrist point.

Question 3

You move all joints linearly from qa to qb. Does the tool move in a straight line?

Explanation

Generally not: FK is non-linear (sines and cosines of joint sums), so the tool traces a curve. Only special designs such as Cartesian robots map straight joint motions to straight tool motions.

Question 4

What do you need besides the link transforms to compute the tool pose in the world frame?

Explanation

The base transform (where the robot stands in the world) and the tool transform (where the TCP is relative to the flange).

Practise it in the labs

Then test yourself in practice exercises and challenge mode.

References and further reading

  • J. J. Craig, Introduction to Robotics: Mechanics and Control, 4th ed., Pearson, 2017, chapters 3–4.
  • K. M. Lynch and F. C. Park, Modern Robotics, Cambridge, 2017, chapter 4.