Ask Your Question

How to track frames from tf in ROS

asked 2017-04-03 11:01:43 -0600

Glass_Eater gravatar image

I am a beginner in using ROS. I am trying to track some frames that are published as a set of transform but I do not know how to do this. I would like to ask if anyone that knows how to track frames on ROS can help me.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-03 11:28:48 -0600

Regardless of whether you are in C++ or Python, you will want to create a tf listener object. Then you can repeatedly lookup the transform between two frames that you are interested in tracking. This looked-up transform will contain a position and quaternion that represents the transformation between the two frames of interest. Many tutorials on the wiki will use the original tf API, but these days it is probably better to use the tf2 API. See the following tutorials:

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: 2017-04-03 11:01:43 -0600

Seen: 555 times

Last updated: Apr 03 '17