Skip to the content
FixTheRobot Explore Robotics / Manipulator Basics / Labs / Lab 04

Manipulator Basics · Lab 04 of 10

Lab 04: Forward Kinematics

Drive 2R, 3R, 4-DOF and 6-DOF arms joint by joint, read the pose and verify your own calculation.

Objective

Compute the end-effector pose from joint angles for 2R, 3R, 4-DOF and 6-DOF arms, verify a hand calculation against the model, and see how a small change in one joint moves the tool.

Brief theory

Forward kinematics (FK) maps joint values to the tool pose: T0TCP(q)=A1(q1) A2(q2)⋯An(qn) TtoolT_0^{\mathrm{TCP}}(q) = A_1(q_1)\,A_2(q_2)\cdots A_n(q_n)\,T_{\mathrm{tool}}. For the 2R planar arm it reduces to

2R planar forward kinematics
x=L1cos⁡q1+L2cos⁡(q1+q2),y=L1sin⁡q1+L2sin⁡(q1+q2)x = L_1\cos q_1 + L_2\cos(q_1+q_2),\qquad y = L_1\sin q_1 + L_2\sin(q_1+q_2)
The second link’s angle in the base frame is q₁ + q₂, not q₂.

To first order, a small joint change δqi\delta q_i moves the tool by the ii-th column of the Jacobian times δqi\delta q_i: δp≈Ji(q) δqi\delta p \approx J_i(q)\,\delta q_i. Joints near the base have long lever arms and move the tool most. Module 06 derives every arm used here.

Simulation workspace

Drag the 3D view to orbit, scroll or pinch to zoom. Every number shown is computed live by the simulation engine running in your browser.

Loading the simulation…

Guided tasks

Each task ticks itself when the simulation sees you do it. Progress is saved in this browser.

  1. Set joint anglesMove any joint slider of any robot.
  2. Calculate the end-effector pose, then verify itUse "New configuration", compute x and y of the 2R arm by hand and check your answer against the model (within 2 mm).
  3. Explore the effect of individual jointsSweep a joint through its range and compare the FK difference with the Jacobian column.
  4. Explore the 3D articulated armSelect the 6-DOF arm and move a wrist joint (q4, q5 or q6). Notice that the wrist centre stays put.

Challenges

Each challenge states an objective, its constraints and how success is measured. The live line under it is computed from the simulation. Hints and full solutions are there when you want them.

Success criteria

  • Your hand-computed pose agrees with the model within 2 mm.
  • You can predict, before moving it, which joint moves the tool most for a 1° change (the largest |Δp| per degree).

Explanation of the results

The pose readout, every matrix and the sensitivity numbers are computed from the DH chain in the browser at every slider change. The "FK difference" and "Jacobian column × 1°" agree to a fraction of a millimetre because 1° is small; the gap between them is the second-order term of the Taylor expansion, and it grows if you imagine much larger steps.

On the 6-DOF arm the last three joint axes meet in one point, the wrist centre. Moving q4, q5 or q6 rotates the gripper about that point but never moves it: position is decided by q1–q3 and orientation by q4–q6. This decoupling is what makes analytical inverse kinematics of such arms possible.