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

Revision history [back]

click to hide/show revision 1
initial version

I'm not sure why you want to do it with a topic. tf provides a very simple method to find transforms, the TransformListener. This gives you the ability to always look up the most recent transform between two frames, which is what I believe you are trying to do.

If, for some reason, you HAVE to subscribe to /tf, you can write a node that has a subscriber to the /tf topic, checks the "header.frame_id" and "child_frame_id" fields and determines whether or not to republish based on that information.