Public Member Functions | Private Attributes | Friends
rotateOp::Euler Class Reference

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. More...

#include <Euler.h>

List of all members.

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
Euleroperator= (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)

Detailed Description

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.


Constructor & Destructor Documentation

Constructor that generates a new Euler object with a specific system.

Parameters:
eulerTypeThe euler system that could be EULER123, EULER321, EULER312.

Definition at line 38 of file Euler.h.

rotateOp::Euler::Euler ( double  roll,
double  pitch,
double  yaw,
TransformationTypes::EulerType  eulerType 
) [inline]

Constructor that generates a new Euler object with a specific system and rotation.

Parameters:
rollthe rotation in x axis.
pitchthe rotation in y axis.
yawthe rotation in z axis.
eulerTypeThe euler system that could be EULER123, EULER321, EULER312.

Definition at line 51 of file Euler.h.


Member Function Documentation

void rotateOp::Euler::fromQuaternion ( Quaternion  quaternion) [inline]

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:
quaternionThe quaternion data to set.

Definition at line 65 of file Euler.h.

Definition at line 186 of file Euler.h.

double rotateOp::Euler::getPitch ( ) const [inline]

Definition at line 174 of file Euler.h.

double rotateOp::Euler::getRoll ( ) const [inline]

Definition at line 178 of file Euler.h.

double rotateOp::Euler::getYaw ( ) const [inline]

Definition at line 182 of file Euler.h.

Euler& rotateOp::Euler::operator= ( const Euler aux) [inline]

Definition at line 142 of file Euler.h.

bool rotateOp::Euler::operator== ( const Euler aux) const [inline]

Definition at line 134 of file Euler.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Euler  e 
) [friend]

Definition at line 151 of file Euler.h.


Member Data Documentation

Definition at line 30 of file Euler.h.

double rotateOp::Euler::pitch [private]

Definition at line 27 of file Euler.h.

double rotateOp::Euler::roll [private]

Definition at line 26 of file Euler.h.

double rotateOp::Euler::yaw [private]

Definition at line 28 of file Euler.h.


The documentation for this class was generated from the following file:


iri_ual_catec
Author(s): Àngel Sanatamaria Navarro
autogenerated on Fri Dec 6 2013 21:24:08