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

Revision history [back]

click to hide/show revision 1
initial version

use this:

t1=2*(orientation.z*orientation.w-orientation.x*orientation.y)

t2=2*pow(orientation.x,2)-1+2*pow(orientation.w,2);

yaw=atan2(t1,t2);

use this:

t1=2*(orientation.z*orientation.w-orientation.x*orientation.y)

t2=2*pow(orientation.x,2)-1+2*pow(orientation.w,2);

yaw=atan2(t1,t2);