ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not sure that getBasis
does what you think, I could be wrong though. I would try using getRotation
which returns a quaternion, then grabbing the yaw from that.
tf::Quaternion q = transform_bot.getRotation();
double yaw = tf::getYaw(q);
Here is the getYaw
documentation.
If that doesn't solve things could you edit your answer and describe what results you're observing with your current code?