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

transformPoint using tf::Transform?

asked 2012-08-24 15:56:22 -0500

bkim gravatar image

updated 2014-01-28 17:13:27 -0500

ngrennan gravatar image


I need to save a transform (world->Kinect frame) at a specific time, and use this transform to convert a point in world coordinate frame to a point in that old Kinect frame after several seconds.

To do this, I first tried using tf::Listener::transformPoint. However, to my knowledge the only way to save a transform at a specific time is by using tf::lookupTransform, which can save the transform at specific time in tf::Transform type. My problem is that in this tf::Transform type, there is no function such as transformPoint.

Am I left to implement such function myself, or is there a one that is named differently?

edit retag flag offensive close merge delete


I took a look at time travel tutorial in tf wiki:, but it does not explain about transforming a point.

bkim gravatar image bkim  ( 2012-08-24 15:57:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-26 09:03:06 -0500

Lorenz gravatar image

The tf::Transform class overloads the * operator. One version takes a tf::Vector3 which is how a point is represented and returns the transformed point.

edit flag offensive delete link more

Question Tools


Asked: 2012-08-24 15:56:22 -0500

Seen: 2,622 times

Last updated: Aug 26 '12