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

Revision history [back]

TF datatypes are actually re-cast Bullet Datatypes. If you have a tf::Quaternion, you can use any of the functions dejan linked to above, but specifically, you want these two:

double btQuaternion::GetAngle()

btVector3 btQuaternion::GetAxis()

TF datatypes are actually re-cast Bullet Datatypes. If you have a tf::Quaternion, you can use any of the functions dejan linked to above, but specifically, you want these two:

double btQuaternion::GetAngle()

btVector3 btQuaternion::GetAxis()

When you want to change the value of a tf::Quaternion from an axis/angle representation, you can use this member function:

btQuaternion::SetRotation(const btVector3 &axis, const double &angle)

TF datatypes are actually re-cast Bullet Datatypes. If you have a tf::Quaternion, you can use any of the functions dejan linked to above, but specifically, you want these two:

double btQuaternion::GetAngle()

btVector3 btQuaternion::GetAxis()

When you want to change the value of a tf::Quaternion from an axis/angle representation, you can use this member function:

void btQuaternion::SetRotation(const btVector3 &axis, const double &angle)