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

How to migrate tf data types such as Quaternion, Vector3, Transform to tf2?

asked 2018-06-21 17:42:34 -0600

cybodroid gravatar image

updated 2022-01-31 08:47:45 -0600

lucasw gravatar image

There is not much mentioned about tf2 datatypes on tf2_ros documentation at . While comparing to , we don't have any data types mentioned. My C++ code has plenty of tf datatypes such as

 tf::Quaternion q(msg->pose[index].orientation.x,

 tf::Transform transform;

How will I migrate them to tf2_ros?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-21 17:59:25 -0600

tfoote gravatar image

Please see the Supported Datatypes section of the tf2 wiki.

The tf::Quaternion is a fork of the Bullet btQuaternion which will be your easiest conversion.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-06-21 17:42:34 -0600

Seen: 529 times

Last updated: Jun 22 '18