In a 3-dimensional space R3, a matrixRx, Ry, Rz that rotates a vector around the x axis, y axis, and z axis in a counterclockwise direction by θ is as follows.
Rx=Ry=Rz=1000cosθsinθ0−sinθcosθcosθ0−sinθ010sinθ0cosθcosθsinθ0−sinθcosθ0001
Conventionally, Rx is called Roll, Ry is called Pitch, and Rz is called Yaw.
Properties
Orthogonality
[1]: The 3-dimensional rotation transformation matrix R is an orthogonal matrix. In other words, the following holds.
R−1=RT
Non-Commutativity
[2]: In the set of rotation transformation matrices, the commutative law does not apply to matrix multiplication. In other words, for two rotation transformation matrices R1 and R2, it could be that R1R2=R2R1.
Explanation
The introduced matrices are nothing but 3-dimensional rotational transformations, which hold significant meaning. Mathematically, they are just matrices that belong to R3×3, but this world is 3-dimensional and they are the most useful in our living world. They are indispensable, particularly in the control of machines, and the non-commutativity of matrices is significantly distinguished from translational symmetry matrices in the context of engineering applications.
A point to note in the equations is that while Roll Rx and Yaw Rz seem to fill in 2-dimensional rotational transformations leaving only the corresponding axis, Pitch Ry has the opposite sign in sin.
Proof
[1]
It is geometrically trivial. If the rotational transformation matrix R rotates around an axis by θ, then R−1 is a matrix that rotates in the opposite direction by −θ, and since sin(−θ)=−sinθ, all three types of rotation transformation matrices satisfy R−1=RT.
■
[2]
It suffices to show at least one combination where changing the order of multiplication results in a different outcome. When calculating the product of Ry(π/2) and Rz(π/2), it is as follows.
Ry(2π)Rz(2π)=====00−1010100010−10000101000110000−1−100010010−10000100−1010100Rz(2π)Ry(2π)
■
Craig. (2013). Introduction to Robotics: Pearson New International Edition PDF eBook: Mechanics and Control: p40 ↩︎