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

transformPoint using tf::Transform?

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

bkim gravatar image

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

ngrennan gravatar image

Hi,

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

Comments

I took a look at time travel tutorial in tf wiki: http://www.ros.org/wiki/tf/Tutorials/Time%20travel%20with%20tf%20%28C%2B%2B%29, but it does not explain about transforming a point.

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

1 Answer

Sort by ยป oldest newest most voted
4

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

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

Stats

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

Seen: 2,677 times

Last updated: Aug 26 '12