ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.