Function navtk::navutils::rpy_to_quat
Defined in File navigation.hpp
Function Documentation
-
Vector4 navtk::navutils::rpy_to_quat(const Vector3 &rpy)
Converts from Euler angles to a quaternion.
This function calculates a
quatthat rotates a vector from frame B to frame A ( \(\textbf{q}_\text{B}^\text{A}\)), when provided the yaw, pitch, and roll that correspond to a 3-2-1 frame rotation from frame A to frame B as described inrpy_to_dcm.See also
Coordinate Frames for more details about quaternion and Euler angle expressions of attitude.
- Parameters
rpy – Euler angles [roll pitch yaw] (radians) that describe a frame rotation from frame A to frame B
- Returns
Quaternion ( \(\textbf{q}_\text{B}^\text{A}\)),