![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Quaternion class. More...
#include <laeImu.h>
Public Member Functions | |
Quaternion () | |
Default constructor. | |
~Quaternion () | |
Destructor. | |
Quaternion | operator= (const Quaternion &rhs) |
Assignment operator. More... | |
void | clear () |
Clear quaternion values. | |
void | convertEuler (double phi, double theta, double psi) |
Convert Euler angles to quaternion. More... | |
void | convertTaitBryan (double roll, double pitch, double yaw) |
Convert Tait-Bryan angles to quaternion. More... | |
Public Attributes | |
double | m_x |
x | |
double | m_y |
y | |
double | m_z |
z | |
double | m_w |
w | |
Quaternion class.
void Quaternion::convertEuler | ( | double | phi, |
double | theta, | ||
double | psi | ||
) |
Convert Euler angles to quaternion.
phi | Angle between x axis and the N axis (radians). |
theta | Angle between z axis and the Z axis (radians). |
phi | Angle between N axis and the X axis (radians). |
Definition at line 95 of file laeImu.cxx.
Referenced by ~Quaternion().
void Quaternion::convertTaitBryan | ( | double | roll, |
double | pitch, | ||
double | yaw | ||
) |
Convert Tait-Bryan angles to quaternion.
roll | Rotation about the x-axis. |
pitch | Rotation about the y-axis. |
yaw | Rotation about the z-axis. |
Definition at line 119 of file laeImu.cxx.
Referenced by sensor::imu::LaeImu::computeQuaternion(), and ~Quaternion().
Quaternion Quaternion::operator= | ( | const Quaternion & | rhs | ) |
Assignment operator.
rhs | Right hand side object. |
Definition at line 77 of file laeImu.cxx.
References m_w, m_x, m_y, and m_z.
Referenced by ~Quaternion().