9.1.4. Frames#
We are now ready to introduce the frame, a 4x4 matrix that expresses both the position and the orientation of a coordinate system, in reference to another coordinate system.
The fourth (easiest) column of a frame is the position of the local coordinate system’s origin expressed in the reference coordinate system. In the example of Figure 4, this is:
The first three columns of a frame express the frame orientation. They are, in the reference coordinate system, the coordinates of three unit vectors that are respectively oriented toward the x, y and z axes of the local coordinate system.
Based on Fig. 9.5, which illustrates this concept for the pose of Fig. 9.4, here is how we would express these three unit vectors in both coordinate systems:
In the upper arm coordinate system |
In the global coordinate system |
|
---|---|---|
Upper arm x axis |
\(\begin{bmatrix} 1 \\ 0 \\ 0 \\ 0 \end{bmatrix}\) |
\(\begin{bmatrix} \cos(\theta) \\ \sin(\theta) \\ 0 \\ 0 \end{bmatrix}\) |
Upper arm y axis |
\(\begin{bmatrix} 0 \\ 1 \\ 0 \\ 0 \end{bmatrix}\) |
\(\begin{bmatrix} -\sin(\theta) \\ \cos(\theta) \\ 0 \\ 0 \end{bmatrix}\) |
Upper arm z axis |
\(\begin{bmatrix} 0 \\ 0 \\ 1 \\ 0 \end{bmatrix}\) |
\(\begin{bmatrix} 0 \\ 0 \\ 1 \\ 0 \end{bmatrix}\) |
Combining these four vectors into a single 4x4 matrix gives the frame \(~^\text{global}_\text{upper arm}T\):
where the expression \(~^\text{global}_\text{upper arm}T\) is read as: Position and orientation of the upper arm coordinate system, expressed in the global coordinate system.
For example, if the shoulder is located 15 cm forward and 70 cm upward to the global origin, and the upper arm is inclined at 30 degrees of the vertical, then the position and orientation of the upper arm coordinate system is expressed by the frame:
Important
Independently of the position and orientation of the studied body, a frame always has this form:
where:
the \(R\) sub-matrix is a function of three rotation angles and represents the orientation of the local coordinate system;
the \(P\) vector is the position of the local coordinate system’s origin.