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

If you're using a class to wrap all this, just make the buffer and listener members and initialise them in your ctor. If not, put them in a scope other than this callback and do the same.

If that's impossible, use the timeout argument to lookupTransform(..) and set it to a non-zero value. ..

If you're using a class to wrap all this, just make the buffer and listener members and initialise them in your ctor. If not, put them in a scope other than this callback and do the same.

If that's impossible, use the timeout argument to lookupTransform(..) and set it to a non-zero value. ..That will make lookupTransform(..) wait for a maximum of timeout seconds before attempting the actual transformation.

See tf2_ros::Buffer::lookupTransform(..).