Algorithm Search⌘K

Definitionintro

Homogeneous transformation matrix

Also called homogeneous transform, 4x4 transformation matrix.

The 4 by 4 matrix T = [[R, p], [0, 1]] of a rotation R and a translation p, so that composing rigid motions and changing frames become matrix products.

A homogeneous transformation matrix is a 4×44 \times 4 matrix T=(Rp01)T = \begin{pmatrix} R & p \\ 0 & 1 \end{pmatrix} that stores a rigid body transformation x↦Rx+px \mapsto Rx + p in one matrix, where RR is a 3×33 \times 3 rotation matrix and pp is a translation vector. A point xx is written as the 4-vector (x,1)(x, 1), and then T(x,1)=(Rx+p,1)T(x, 1) = (Rx + p, 1). With this trick, the composition of two rigid motions is the product of their matrices, and a change of frame is one matrix-vector product. Robot software uses these matrices to chain the poses of the links of an arm, of sensors and of objects. The set of all such matrices is the special Euclidean group SE(3).

Definition

A homogeneous transformation matrix is a matrix

T=(Rp01)=(r11r12r13p1r21r22r23p2r31r32r33p30001),R∈SO(3), p∈R3.T = \begin{pmatrix} R & p \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} r_{11} & r_{12} & r_{13} & p_1 \\ r_{21} & r_{22} & r_{23} & p_2 \\ r_{31} & r_{32} & r_{33} & p_3 \\ 0 & 0 & 0 & 1 \end{pmatrix}, \qquad R \in SO(3),\ p \in \mathbb{R}^3 .

Points and vectors. A point xx has the homogeneous coordinates (x,1)(x, 1), and T(x,1)=(Rx+p,1)T(x, 1) = (Rx + p, 1). A free vector vv, such as a direction, has the coordinates (v,0)(v, 0), and T(v,0)=(Rv,0)T(v, 0) = (Rv, 0), so it rotates but does not translate.

Frames. TabT_{ab} holds the orientation RabR_{ab} and the origin pabp_{ab} of frame {b}\{b\} in frame {a}\{a\}. For a point with coordinates xbx_b in {b}\{b\}, (xa,1)=Tab(xb,1)(x_a, 1) = T_{ab}(x_b, 1). The subscripts cancel in a product: Tac=TabTbcT_{ac} = T_{ab}T_{bc}.

Inverse.

T−1=(RT−RTp01),T^{-1} = \begin{pmatrix} R^{\mathsf T} & -R^{\mathsf T}p \\ 0 & 1 \end{pmatrix},

and Tab−1=TbaT_{ab}^{-1} = T_{ba}. This needs no general matrix inversion.

Three uses. The same matrix TsbT_{sb} can be read in three ways: as the configuration of the frame {b}\{b\} relative to {s}\{s\}; as the change of coordinates from {b}\{b\} to {s}\{s\}; or as a displacement that moves a body. A displacement TT applied by multiplication on the left, TTsbTT_{sb}, acts about the axes of the fixed frame {s}\{s\}. Applied on the right, TsbTT_{sb}T, it acts about the axes of the body frame {b}\{b\}.

Examples and non-examples

  • Let R=Rz(π/2)R = R_z(\pi/2) and p=(1,1,0)p = (1, 1, 0), so T=(0−101100100100001)T = \begin{pmatrix} 0 & -1 & 0 & 1 \\ 1 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}. The point (1,0,0)(1, 0, 0) goes to (0,1,0)+(1,1,0)=(1,2,0)(0, 1, 0) + (1, 1, 0) = (1, 2, 0). The direction (1,0,0)(1, 0, 0) goes to (0,1,0)(0, 1, 0).
  • Its inverse is T−1=(010−1−100100100001)T^{-1} = \begin{pmatrix} 0 & 1 & 0 & -1 \\ -1 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}, since −RTp=−(1,−1,0)-R^{\mathsf T}p = -(1, -1, 0). It takes (1,2,0)(1, 2, 0) back to (1,0,0)(1, 0, 0).
  • The pure translation by pp is (Ip01)\begin{pmatrix} I & p \\ 0 & 1 \end{pmatrix}, and the pure rotation is (R001)\begin{pmatrix} R & 0 \\ 0 & 1 \end{pmatrix}. Every TT is the rotation first and the translation second: T=(Ip01)(R001)T = \begin{pmatrix} I & p \\ 0 & 1 \end{pmatrix}\begin{pmatrix} R & 0 \\ 0 & 1 \end{pmatrix}.
  • Non-example: the 4×44 \times 4 matrices of computer graphics with a scale factor, a shear or a perspective last row are also called homogeneous transformations, but they are not rigid. They are affine or projective maps, and the inverse formula above does not hold for them.
  • Non-example: a matrix of the right shape whose 3×33 \times 3 block is only close to a rotation, for example after many floating-point products. It must be projected back onto SO(3) before the inverse formula is used.

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 3, Section 3.3.1 (homogeneous transformation matrices, their inverse and their uses)
  2. Richard M. Murray, Zexiang Li and S. Shankar Sastry, A Mathematical Introduction to Robotic Manipulation, CRC Press, 1994, Chapter 2, Section 3.1 (homogeneous representation of rigid motions)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/VNMX81/text.yaml