ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Something along these lines should work:

tf::Quaternion q = tf::createQuaternionFromYaw(0.0);
tf::quaternionTFToMsg(q, imu.orientation);

See tf::quaternionTFToMsg().