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

Oh, well that's your problem. You shouldn't be subscribing to the '/tf' topic directly. You should be using alistener and a buffer so that the library does all the math for you.

http://wiki.ros.org/tf2/Tutorials/Writing%20a%20tf2%20listener%20%28Python%29

Then use the 'transform' method from the BufferInterface http://docs.ros.org/melodic/api/tf2_ros/html/python/