Public Member Functions |
| Euler (TransformationTypes::EulerType eulerType) |
| Constructor that generates a new Euler object with a specific system.
|
| Euler (double roll, double pitch, double yaw, TransformationTypes::EulerType eulerType) |
| Constructor that generates a new Euler object with a specific system and rotation.
|
void | fromQuaternion (Quaternion quaternion) |
| This method sets the euler data with quaternion data. Sets the roll, pitch, yaw components of the object using quaternion data and a specific euler system (EULER123, EULER312,...). The euler system (euler321, euler123, ...) must be specified to know what is the transformation to applied.
|
TransformationTypes::EulerType | getEulerType () const |
double | getPitch () const |
double | getRoll () const |
double | getYaw () const |
Euler & | operator= (const Euler &aux) |
bool | operator== (const Euler &aux) const |
Private Attributes |
TransformationTypes::EulerType | eulerType |
double | pitch |
double | roll |
double | yaw |
Friends |
std::ostream & | operator<< (std::ostream &o, Euler e) |
This class defines a euler angle. the euler angles are three angles to describe the orientation of a rigid body. Euler angles represent three composed rotations that move a reference frame to a given referred frame. Any orientation can be achieved by composing three elemental rotations (rotations around a single axis). The order to rotate the three angles over this axis is important to determine the final position of the body with its reference frame. The Euler angles will be roll, pitch and yaw.
Definition at line 24 of file Euler.h.
This method sets the euler data with quaternion data. Sets the roll, pitch, yaw components of the object using quaternion data and a specific euler system (EULER123, EULER312,...). The euler system (euler321, euler123, ...) must be specified to know what is the transformation to applied.
- Parameters:
-
quaternion | The quaternion data to set. |
Definition at line 65 of file Euler.h.