Template Function tf2::getEulerYPR

Function Documentation

template<class A>
void tf2::getEulerYPR(const A &a, double &yaw, double &pitch, double &roll)

Return the yaw, pitch, roll of anything that can be converted to a tf2::Quaternion The conventions are the usual ROS ones defined in tf2/LineMath/Matrix3x3.h

Parameters:
  • a – the object to get data from (it represents a rotation/quaternion)

  • yaw – yaw

  • pitch – pitch

  • roll – roll