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 guess you are starting the MultiThreadedSpinner from within your threads. The threading should be done by the spinner.

In addition you are not storing the subscriber anywhere, so I suspect that the anonymously returned object will go out of scope and thus there will be no subscription.

I guess you are starting the MultiThreadedSpinner from within your threads. The threading should already be done by the spinner.

In addition you are not storing the subscriber anywhere, so I suspect that the anonymously returned object will go out of scope and thus there will be no subscription.