Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::algorithms::transforms::Orientation Class Reference

#include <orientation.hpp>

Public Member Functions

 Orientation (const float roll, const float pitch, const float yaw)
 
 Orientation (Orientation &&other)
 
 Orientation (Orientation &other)
 
 Orientation (const CMSISMat< 3, 3 > &matrix)
 
 Orientation (CMSISMat< 3, 3 > &&matrix)
 
Orientation compose (const Orientation &other) const
 
float roll () const
 
float pitch () const
 
float yaw () const
 
const CMSISMat< 3, 3 > & matrix () const
 

Static Public Member Functions

static CMSISMat< 3, 3 > fromEulerAngles (const float roll, const float pitch, const float yaw)
 

Friends

class Transform
 
class DynamicOrientation
 

Constructor & Destructor Documentation

◆ Orientation() [1/5]

tap::algorithms::transforms::Orientation::Orientation ( const float  roll,
const float  pitch,
const float  yaw 
)
inline

◆ Orientation() [2/5]

tap::algorithms::transforms::Orientation::Orientation ( Orientation &&  other)
inline

◆ Orientation() [3/5]

tap::algorithms::transforms::Orientation::Orientation ( Orientation other)
inline

◆ Orientation() [4/5]

tap::algorithms::transforms::Orientation::Orientation ( const CMSISMat< 3, 3 > &  matrix)
inline

◆ Orientation() [5/5]

tap::algorithms::transforms::Orientation::Orientation ( CMSISMat< 3, 3 > &&  matrix)
inline

Member Function Documentation

◆ compose()

Orientation tap::algorithms::transforms::Orientation::compose ( const Orientation other) const
inline

◆ fromEulerAngles()

static CMSISMat< 3, 3 > tap::algorithms::transforms::Orientation::fromEulerAngles ( const float  roll,
const float  pitch,
const float  yaw 
)
inlinestatic

Generates a 3x3 rotation matrix from euler angles (in radians)

◆ matrix()

const CMSISMat< 3, 3 > & tap::algorithms::transforms::Orientation::matrix ( ) const
inline

◆ pitch()

float tap::algorithms::transforms::Orientation::pitch ( ) const
inline

◆ roll()

float tap::algorithms::transforms::Orientation::roll ( ) const
inline

Returns roll as values between [-pi, +pi].

If pitch is completely vertical (-pi / 2 or pi / 2) then roll and yaw are gimbal-locked. In this case, roll is taken to be 0.

◆ yaw()

float tap::algorithms::transforms::Orientation::yaw ( ) const
inline

Friends And Related Symbol Documentation

◆ DynamicOrientation

friend class DynamicOrientation
friend

◆ Transform

friend class Transform
friend

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