Template Function tf2::getYaw

Function Documentation

template<class A>
double tf2::getYaw(const A &a)

Return the yaw of anything that can be converted to a tf2::Quaternion The conventions are the usual ROS ones defined in tf2/LineMath/Matrix3x3.h This function is a specialization of getEulerYPR and is useful for its wide-spread use in navigation

Parameters:

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

Returns:

yaw