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

According to http://wiki.ros.org/tf/Tutorials/tf%20and%20Time%20%28C%2B%2B%29:

The use of ros::Time::now() is for this example. Usually this would be the timestamp of the data wishing to be transformed.

Try replacing ros::Time(0) in your calls to waitForTransform() and lookupTransform() with msg->header.stamp.