In this robotics and aerospace lecture, we
- Explain the concept of rotation matrices.
- Derive the general expression for rotation matrices.
- Explain that the rotation matrices are used to transform the coordinates of vectors from one to another coordinate system that are rotated with respect to each other.
- Derive the expression for the rotation matrix around the y-axis.
The YouTube tutorial accompanying this tutorial is given below.
We consider the rotation of one coordinate system with respect to another one shown in the figure below.
There are two coordinate systems A and B, with the coordinates
The figure below shows the vector
Problem: Knowing the coordinates of the vector
To address this problem, we introduce the following notation:
(1)
denotes the vector
(2)
denotes the vector
It should be kept in mind that the vectors
(3)
The vector
(4)
Here one thing should always be kept in mind. The unit vectors of both coordinate systems
(5)
That is, we have
(6)
By substituting (3) and (4) in (6), we have
(7)
By scalarly multiplying the equation (7) with
(8)
By scalarly multiplying the equation (7) with
(9)
By scalarly multiplying the equation (7) with
(10)
Let us write the equations (8), (9), and (10) together
(11)
The last three equations can be written in the matrix form as follows
(12)
The last equation can be written compactly
(13)
where
(14)
The matrix
Since the vectors
(15)
By substituting (15) in (14), we have
(16)
The matrix defined in (16) is the rotation matrix defining the rotation of two coordinate systems around the
To summarize, the expression
(17)
implements a mapping. It transforms the projections of the vector
Another important property of the rotation matrices is that they are orthogonal, that is,
(18)
This is important since from (17), we can write
(19)
More about the properties of the rotation matrices can be found here.