upkie 9.0.0
Open-source wheeled biped robots
|
|
inline |
Compute the body angular velocity of the base from IMU readings.
[in] | angular_velocity_imu_in_imu | Angular velocity from the IMU. |
[in] | rotation_base_to_imu | Rotation matrix from base to IMU. |
Calculation checks:
Our input is \({}_I \omega_{WI}\), we seek \({}_B \omega_{WB}\).
\( \begin{align*} \dot{R}_{WI} & = R_{WI} ({}_I \omega_{WI} \times) \\ R_{WB} & = R_{WI} R_{IB} \\ \dot{R}_{WB} & = \dot{R}_{WI} R_{IB} \\ & = R_{WI} ({}_I \omega_{WI} \times) R_{IB} \\ & = R_{WI} R_{IB} ({}_B \omega_{WI} \times) \\ & = R_{WB} ({}_B \omega_{WI} \times) = R_{WB} ({}_B \omega_{WB} \times) \end{align*} \)
Thus \({}_B \omega_{WB} = R_{BI} {}_I \omega_{WI}\).