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 if I understood your problem correctly.

But if( done = false ) { is missing a =.

To avoid the done variable use the shutdown() member function of the subscriber class.