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

recieve all data from tf message

asked 2015-05-16 03:57:26 -0500

tambel gravatar image

updated 2015-05-16 04:30:30 -0500

listener.lookupTransform('/frame1', '/frame2', rospy.Time(0)) function works with 2 frames, so if i need to know all frames positions, relative to frame1, i have to call "lookupTransform" for each frame? Is that right way? I mean, if i have 10 frames, i should call lookupTransform 9 times, is this normal to performance?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-16 12:28:19 -0500

tfoote gravatar image

Yes, typical usage is to have many more frames in the system than you are operating upon.

And making 10 queries to find the relationship between 10 frames takes the same amount of computation whether done internally or externally. So we kept the API simple and only provide lookups between two frames.

And note that lookup is optimized and a relatively cheap operation.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-16 03:57:26 -0500

Seen: 110 times

Last updated: May 16 '15