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

What is this WaitForTransform and lookupTransform function overloading do?

asked 2018-07-27 12:16:47 -0600

achmad_fathoni gravatar image

Usually I use method of both tf function that only accept source_frame and target_frame. Recently I discover from amcl source code that there is another function overloading that accepts more argumentd like fixed_frame, source_time, target_time. I have read the documentation and still don't understand what is these function and its argument do.

Even more the code from amcl sets target_frame and source_frame value with same frame that is base_frame_id, why?

  // wait a little for the latest tf to become available
  tf_->waitForTransform(base_frame_id_, msg.header.stamp,
                       base_frame_id_, now,
                       odom_frame_id_, ros::Duration(0.5));
  tf_->lookupTransform(base_frame_id_, msg.header.stamp,
                       base_frame_id_, now,
                       odom_frame_id_, tx_odom);
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-27 12:59:43 -0600

tfoote gravatar image

updated 2018-07-27 12:59:57 -0600

You can read about it in the "Time Travel tutorials" c++, python

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-27 12:16:47 -0600

Seen: 2,480 times

Last updated: Jul 27 '18