Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, since you just want yaw and not pitch and roll, you can use the following:

geometry_msgs::Quaternion odom_quat = tf::createQuaternionMsgFromYaw(th);