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

The spinOnce() will not wait for a message to come in. In fact, unless the timing is very lucky, then it will never see a message. If you want to do something when a point cloud comes in, you should put your service call in the point cloud callback.