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

What is the difference between buffer.lookup_transform and listner.lookup_transform in tf?

asked 2022-11-17 06:11:38 -0500

Sharath93 gravatar image

I was looking at the documentation of tf and saw that the lookup_transform can be triggered using the buffer object or the listner object. But I wanted to know if there is any difference between these two calls.

Can someone please let me understand the differences?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-11-17 12:06:37 -0500

Mike Scheutzow gravatar image

updated 2022-11-17 12:07:10 -0500

listener.lookup_transform() is from the older tf module. It exists for compatibiility with old code.

buffer.lookup_transform() is from the newer tf2_ros module. You should use this one in new code.

They return an answer in different forms, but there is no operational difference between them. Internally the listener version is now implemented using the buffer one.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-11-17 06:11:38 -0500

Seen: 38 times

Last updated: Nov 17 '22