Function tf2::impl::getEulerYPR

Function Documentation

inline void tf2::impl::getEulerYPR(const tf2::Quaternion &q, double &yaw, double &pitch, double &roll)

The code below is blantantly copied from urdfdom_headers only the normalization has been added. It computes the Euler roll, pitch yaw from a tf2::Quaternion It is equivalent to tf2::Matrix3x3(q).getEulerYPR(yaw, pitch, roll);

Parameters:
  • q – a tf2::Quaternion

  • yaw – the computed yaw

  • pitch – the computed pitch

  • roll – the computed roll