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

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 http://docs.ros.org/latest/api/tf2_ro... . While comparing to http://docs.ros.org/latest/api/tf/htm... , 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,
                msg->pose[index].orientation.y,
                msg->pose[index].orientation.z,
                msg->pose[index].orientation.w);


 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
1

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

Stats

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

Seen: 775 times

Last updated: Jun 22 '18