A vector in the body frame is given by \(\vec{r} = [1, 2, -1]^T\). If the vehicle has Euler angles \(\phi = 20^{\circ}\), \(\theta = 10^{\circ}\), \(\psi = 45^{\circ}\), express this vector in the global frame.
Question 2
A vehicle has angular velocity components \(p = 0.5\) rad/s, \(q = 0.3\) rad/s, \(r = -0.2\) rad/s in its body frame. If the current orientation is \(\phi = 10^{\circ}\), \(\theta = 20^{\circ}\) and \(\psi = 45^{\circ}\), calculate the rate of change of heading angle \(\dot{\psi}\).
Question 3
A vehicle moves from orientation 1 (\(\phi_1 = 10^{\circ}\), \(\theta_1 = 15^{\circ}\), \(\psi_1 = 5^{\circ}\)) to orientation 2 (\(\phi_2 = 45^{\circ}\), \(\theta_2 = 30^{\circ}\), \(\psi_2 = 60^{\circ}\)) in \(2\) seconds. Assuming constant angular velocity during this motion, calculate the unit vector in the direction of the body-frame angular velocity vector expressed in the body frame.
Hint: The eigen vector of the rotation matrix corresponding to eigen value 1 is the direction of the axis of rotation. The other two eigen values are complex numbers and represent \(e^{\pm i\beta}\) where \(\beta\) is the angle of rotation.
Challenge Question: Compute the body-frame angular velocity vector.
Calculate the relative rotation (in Euler angles) required to move from the initial to the final orientation. Note that \(\phi,\psi \in [-\pi, \pi]\) and \(\theta \in [-\pi/2, \pi/2]\)
If we consider \(\theta \in [-\pi, \pi]\), we get two sets of Euler angles corresponding to the same orientation.
Solution 1
A vector in the body frame is given by \(\vec{r} = [1, 2, -1]^T\). If the vehicle has Euler angles \(\phi = 20^{\circ}\), \(\theta = 10^{\circ}\), \(\psi = 45^{\circ}\), express this vector in the global frame.
The rotation matrix is given by:
0.6964, -0.6225, 0.3572
0.6964, 0.7065, -0.1265
-0.1736, 0.3368, 0.9254
The vector in global frame is given by:
-0.9058, 2.2357, -0.4254
Solution 2
A vehicle has angular velocity components \(p = 0.5\) rad/s, \(q = 0.3\) rad/s, \(r = -0.2\) rad/s in its body frame. If the current orientation is \(\phi = 10^{\circ}\), \(\theta = 20^{\circ}\) and \(\psi = 45^{\circ}\), calculate the rate of change of heading angle \(\dot{\psi}\).
J2 matrix is given by:
1.0000, 0.0632, 0.3584
0.0000, 0.9848, -0.1736
0.0000, 0.1848, 1.0480
The Euler rates are given by:
0.4473, 0.3302, -0.1542
Yaw rate is -0.1542 rad/s
Solution 3
A vehicle moves from orientation 1 (\(\phi_1 = 10^{\circ}\), \(\theta_1 = 15^{\circ}\), \(\psi_1 = 5^{\circ}\)) to orientation 2 (\(\phi_2 = 45^{\circ}\), \(\theta_2 = 30^{\circ}\), \(\psi_2 = 60^{\circ}\)) in \(2\) seconds. Assuming constant angular velocity during this motion, calculate the unit vector in the direction of the body-frame angular velocity vector expressed in the body frame.
Hint: The eigen vector of the rotation matrix corresponding to eigen value 1 is the direction of the axis of rotation. The other two eigen values are complex numbers and represent \(e^{\pm i\beta}\) where \(\beta\) is the angle of rotation.
Challenge Question: Compute the body-frame angular velocity vector.
The eigenvalues are: 0.59+0.81j, 0.59-0.81j, 1.00+0.00j
The magnitude of eigenvalues are: 1.00, 1.00, 1.00
The eigenvector for 1.00+0.00j is:
[0.21206723+0.j 0.66253656+0.j 0.71838207+0.j]
Axis of rotation in BCS:
[0.21206723 0.66253656 0.71838207]
Calculate the relative rotation (in Euler angles) required to move from the initial to the final orientation. Note that \(\phi,\psi \in [-\pi, \pi]\) and \(\theta \in [-\pi/2, \pi/2]\)
If we consider \(\theta \in [-\pi, \pi]\), we get two sets of Euler angles corresponding to the same orientation.