convert the yaw Euler angle into into the range [0 , 360].
Hi everyone,
I used the following code to get the yaw Euler angle:
// Convert quaternion to RPY.
tf::Quaternion q;
tf::quaternionMsgToTF(imu_msg->orientation, q);
tf::Matrix3x3(q).getRPY(roll, pitch, yaw);
I get the Euler angle varying from [0,PI] and [-PI, 0]
I need rotation angles in the range of 0 to 360. Is it possible to get that directly?
Thanks in advance