ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

recieve all data from tf message

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

tambel gravatar image

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

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 79 times

Last updated: May 16 '15