rpos::core::Rotation Class

Represents object's rotational attitude in 3D space (in rad)

Header File

rpos/core/pose.h

Applies to

  • Slamware
  • Mapper

Constructors

/**
* Construct a Rotation object with yaw, pitch, and roll all set to zero.
*/
Rotation();   
/**
* Construct a Rotation object.
*/
Rotation(double yaw, double pitch, double roll);
/**
* Copy constructor.
*/
Rotation(const Rotation&);   

Operators

/**
* Assignment operator.
*/
Rotation& operator=(const Rotation&);   
/**
* Equals to operator.
*/
bool operator==(const Rotation&) const;

Methods

/**
* Yaw (unit: rad), follows Tait-Bryan angles rules, please refer to Wikipedia for details.
*/
double yaw() const; 
double& yaw();
/**
* pitch field.
*/
double pitch() const;
double& pitch();
/**
* Roll field.
*/
double roll() const;
double& roll();