Tait-Bryan Angles

One way to define the rotation matrix in three dimensions is by composing rotations about the three principal axes of the reference frame.

Let us define $\vartheta$ as the pitch angle, $\gamma$ as the yaw angle, and $\rho$ as the roll angle, which are the orientation angles of the sensor with respect to the world reference frameA.3 These angles and this nomenclature are referred to as Tait-Bryan Angles, Cardan Angles (after Gerolamo Cardano), or nautical angles.

Below, the matrices will be presented (as referenced in example (LaV06)) that convert a vector from sensor coordinates to world coordinates through angles that represent the orientation of the sensor with respect to the world itself. These are the same matrices that rotate a vector in a counterclockwise direction with respect to the various axes of the reference system.

The axes of this reference system are those shown in figure 8.4. However, it should be noted that for terrestrial vehicles and ships, a reference system different from the aeronautical one is preferred.

The rotation matrix for the roll angle $\rho$ (around the X axis) is given by:

\begin{displaymath}
\mathbf{R}_{x} = \mathbf{R}_{\rho} = \begin{bmatrix}
1 & 0 ...
...rho & -\sin \rho \\
0 & \sin \rho & \cos \rho
\end{bmatrix}\end{displaymath} (A.6)

The rotation matrix for the pitch angle $\vartheta$ (around the Y axis) is given by:

\begin{displaymath}
\mathbf{R}_y = \mathbf{R}_{\vartheta} = \begin{bmatrix}
\co...
... 0 \\
-\sin \vartheta & 0 & \cos \vartheta \\
\end{bmatrix}\end{displaymath} (A.7)

The rotation matrix for the yaw angle $\gamma$ (around the Z axis) is given by:

\begin{displaymath}
\mathbf{R}_z = \mathbf{R}_{\gamma} = \begin{bmatrix}
\cos \...
...\
\sin \gamma & \cos \gamma & 0 \\
0 & 0 & 1
\end{bmatrix}\end{displaymath} (A.8)

(La Valle (LaV06), pp. 80-81).

As stated in the previous section, the composition of rotations is not commutative, and it is necessary to make a choice.

In the aeronautical field, the Roll-Pitch-Yaw (RPY) convention is suggested. Under this particular convention, the change of basis matrix (alias) is constructed as $\prescript{w}{}{\mathbf{R}}_{b}=\mathbf{R}_z \mathbf{R}_y \mathbf{R}_x$A.4 that is, by performing the multiplications, It should be noted that this matrix transforms points from the moving coordinates "sensor" (body coordinates in the generic case) to the fixed coordinates "world".

In the specific case where the sensor is a pin-hole camera, using this convention and considering equation (A.5), the rotation matrix $\mathbf{R}$ of the pin-hole camera that converts from "world" coordinates Front-Left-Up to "camera" coordinates can be expressed as a product of

\begin{displaymath}
\prescript{c}{}{\mathbf{R}}_{w} = \prescript{c}{}{\boldsymbo...
...rho}^{-1} \mathbf{R}_{\vartheta}^{-1} \mathbf{R}_{\gamma}^{-1}
\end{displaymath} (A.9)

that is
\begin{displaymath}
\begin{bmatrix}
-\cos \gamma \sin \theta \sin \rho + \sin \g...
...s \theta & \sin \gamma \cos \theta & -\sin \theta
\end{bmatrix}\end{displaymath} (A.10)

It should be emphasized that the matrix $\prescript{c}{}{\mathbf{R}}_{w}$, expressed as in formula (A.9), is the matrix that "removes" the rotation of a sensor at those specific positioning angles and thus transforms from "world" coordinates to "camera" coordinates. In contrast, it is common in the literature to refer to the rotation matrix as the one that converts from "sensor" coordinates to "world" coordinates.

It is interesting to note that from a purely graphical perspective, the columns of the inverse/transposed matrix of matrix (A.10), which allows for the transformation of points from camera coordinates to world coordinates, facilitate the easy drawing of the axes and thus graphically represent the orientation of the camera.



Footnotes

... frameA.3
Note that there is no universally accepted notation for the Greek letters associated with the three angles. For example, one might find $\phi$ for the yaw angle and $\psi$ for the roll angle.
...#tex2html_wrap_inline20586#A.4
The intrinsic z-y'-x” sequence (the use of primes emphasizes this type of transformation) would instead generate $\mathbf{R}=\mathbf{R}_x \mathbf{R}_y \mathbf{R}_z$. To add further confusion, the x-y'-z” sequence is known as Roll-Pitch-Yaw (or Roll-Pitch-Yaw XYZ), while the z-y'-x” (intrinsic) sequence is commonly referred to as Yaw-Pitch-Roll (or Roll-Pitch-Yaw ZYX).


Subsections
Paolo medici
2025-10-22