← all notes

Unit 3.2 · Product of Exponentials

Screw axes and PoE - the version that finally clicked

Forward kinematics asks one question: if I set every joint to some value, where is the hand? DH answers it with a frame on every link and a strict set of rules. The product of exponentials (PoE) answers it with just two frames, the base and the tool, plus one “screw axis” per joint. Fewer frames, fewer places to mess up.

Explaining PoE is important for the exam, and so is building the screw axes that go into it. Building the axes is where most of the confusion lives, so that comes first.

Screw axis vs exponential coordinates

These two look almost identical on paper and they are not the same thing. Driving directions make it obvious:

DrivingRobotics
Direction”point the car north-east”screw axis ξ\xi
Amount”drive 5 km”ϕ\phi (or θ\theta, or qiq_i)
The whole trip”drive 5 km north-east”exponential coordinates ξϕ\xi\phi

The screw axis is a pure direction, so something in it has to have length 1. Otherwise “drive 5 km” and “drive 2.5 km at double speed” would be the same trip written two ways. The amount lives in ϕ\phi and nowhere else.

A screw axis has six numbers, rotation on top, linear part below:

ξ=[ωv]\xi = \begin{bmatrix} \omega \\ v \end{bmatrix}

The two kinds of joint

Always decide first whether the joint turns or slides. That one check picks the formula.

Revolute joint (it turns)

ω=unit vector of the rotation axis,v=− ω×p\omega = \text{unit vector of the rotation axis}, \qquad v = -\,\omega \times p

where pp is any point on the rotation axis. Here the location matters, because of the lever arm. Swing a ball on a 1 m rope and on a 4 m rope: same rotation, totally different motion of the ball. The cross product is what captures that. And “any point” is fine because sliding pp along the axis adds a part parallel to ω\omega, which the cross product kills.

You do not normalise vv here. Its length encodes how far the axis is from the origin. Force it to length 1 and the robot “forgets” how long its links are.

Prismatic joint (it slides)

ω=03,v=unit vector of the sliding direction\omega = 0_3, \qquad v = \text{unit vector of the sliding direction}

Here the location does not matter. A train heading north is heading north whether the track is at your feet or 4 km to your right. A slider only has a direction.

The trap I fell into. A slider sitting at x=4x = 4 that moves straight down has v=[0,0,−1]Tv = [0,0,-1]^T, not the normalised [4,0,−1]T[4,0,-1]^T. That second vector would describe a joint sliding diagonally from the base across the room. Think of an elevator four blocks away: it still only goes up and down.

Figure vs matrix: same method, different input

Two exercises looked like they used different rules for sliders, and it messed with me for a while. They don’t.

Example: r=[1,0,1]Tr = [1,0,1]^T is a diagonal slide. ϕ=2\phi = \sqrt 2, and v=[12,0,12]Tv = [\tfrac{1}{\sqrt2}, 0, \tfrac{1}{\sqrt2}]^T has length 1 even though its entries aren’t 1. Had the figure shown that diagonal arrow, you would have had to normalise it there too.

Worked example: the SCARA

A SCARA-type arm: joint 1 turns about zz at the origin, joint 2 about zz at x=2x = 2, joint 3 about zz at x=4x = 4, and joint 4 slides straight down. In the home pose the tool sits at (4,0,1)(4, 0, 1).

Step 1: the home pose MM

M=TFWI(q=0n)M = T_F^{W_I}(q = 0_n) is an ordinary homogeneous transform. Read it off the figure like any other: rotation columns are the tool’s axes in world coordinates, the last column is the tool position.

Decode colours first, red = xx, green = yy, blue = zz. If the tool’s red arrow points opposite to the world’s green arrow, then xF=−yWx_F = -y_W and the first column is [0,−1,0]T[0,-1,0]^T. With the tool’s zz pointing down:

M=[0−104−100000−110001]M = \begin{bmatrix} 0 & -1 & 0 & 4 \\ -1 & 0 & 0 & 0 \\ 0 & 0 & -1 & 1 \\ 0 & 0 & 0 & 1 \end{bmatrix}

Step 2: one screw axis per joint

All three revolute joints have ω=[0,0,1]T\omega = [0,0,1]^T. Only pp changes:

JointTypeω\omegappv=−ω×pv = -\omega \times pξ\xi
1revolute[0,0,1][0,0,1][0,0,0][0,0,0][0,0,0][0,0,0][0,0,1,0,0,0]T[0,0,1,0,0,0]^T
2revolute[0,0,1][0,0,1][2,0,0][2,0,0][0,−2,0][0,-2,0][0,0,1,0,−2,0]T[0,0,1,0,-2,0]^T
3revolute[0,0,1][0,0,1][4,0,0][4,0,0][0,−4,0][0,-4,0][0,0,1,0,−4,0]T[0,0,1,0,-4,0]^T
4prismatic030_3(ignored)[0,0,−1][0,0,-1][0,0,0,0,0,−1]T[0,0,0,0,0,-1]^T

Pattern worth stealing: a zz-axis joint at distance LL along xx always gives v=[0,−L,0]Tv = [0,-L,0]^T.

Step 3: hat every axis

The exponential only works on square matrices, so every 6-vector gets “inflated” into a 4×44\times4. The hat ξ^\hat\xi (or [ξ][\xi]) is the instruction to do that. No new maths: top three numbers go into the skew-symmetric block, bottom three become the right column, bottom row is zeros.

[ξ]=[[ω]v03T0],[ω]=[0−ωzωyωz0−ωx−ωyωx0][\xi] = \begin{bmatrix} [\omega] & v \\ 0_3^T & 0 \end{bmatrix}, \qquad [\omega] = \begin{bmatrix} 0 & -\omega_z & \omega_y \\ \omega_z & 0 & -\omega_x \\ -\omega_y & \omega_x & 0 \end{bmatrix}

How I remember [ω][\omega]: diagonal all zeros, top-right triangle is −ωz, ωy, −ωx-\omega_z,\ \omega_y,\ -\omega_x reading row by row, then mirror it with the signs flipped. For joint 2:

[ξ2]=[0−100100−200000000][\xi_2] = \begin{bmatrix} 0 & -1 & 0 & 0 \\ 1 & 0 & 0 & -2 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{bmatrix}

Step 4: assemble

TFWI(q)=e[ξ1]q1 e[ξ2]q2 e[ξ3]q3 e[ξ4]q4 MT_F^{W_I}(q) = e^{[\xi_1] q_1}\, e^{[\xi_2] q_2}\, e^{[\xi_3] q_3}\, e^{[\xi_4] q_4}\, M

Checklist for a complete answer, because I lost points on each of these at least once:

Evaluating it with actual numbers

Evaluating PoE for concrete joint values means four 4×44\times4 matrix exponentials (each one a Rodrigues-style formula). That is computer work: MATLAB’s expm does it in a blink. By hand, under time pressure, with a calculator that only does 3×33\times3, forget it.

What you can do is trace the motion physically. Take q=[−π2,π2,π2,1]Tq = [-\tfrac{\pi}{2}, \tfrac{\pi}{2}, \tfrac{\pi}{2}, 1]^T:

  1. Joint 1 turns −90∘-90^\circ: link 1 now points down −y-y, so joint 2 sits at (0,−2,0)(0,-2,0).
  2. Joint 2 turns +90∘+90^\circ: link 2 swings back to point along +x+x, so the arm’s end is at (2,−2)(2,-2).
  3. Joint 3 turns +90∘+90^\circ: the tool spins in place. Orientation changes, position doesn’t.
  4. Joint 4 slides down 1: height goes from 1 to 0.

The tool origin ends up at [2,−2,0]T[2,-2,0]^T. To get the tool origin out of a finished TT instead, multiply by [0,0,0,1]T[0,0,0,1]^T, which just picks the last column. The position of a frame is the translation column of its transform.

URDF: the same robot, written relatively

A URDF describes the same arm as an XML tree of links (the bones) and joints (the hinges). Each joint has a parent, a child, an <origin xyz rpy> and an <axis>.

The trap. In PoE everything is measured from the base. In URDF every <origin> is measured from the previous joint. My first attempt put joint 2 at xyz="2 0 4" (absolute). The correct entry is xyz="2 0 0": two to the right of joint 1, nothing more.

<joint name="q2" type="continuous">
  <parent link="link_1" />
  <child link="link_2" />
  <origin xyz="2 0 0" rpy="0 0 0" />
  <axis xyz="0 0 1" />
</joint>

continuous is a revolute joint with no limits, prismatic slides. The <axis> is the same direction you would put in ω\omega or vv. To get the pose out of a URDF, turn each <origin> into a transform (xyz is the translation, rpy builds Rz(yaw)Ry(pitch)Rx(roll)R_z(\text{yaw})R_y(\text{pitch})R_x(\text{roll})) and chain them.