ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The link below to the multithreaded spinner is what you're looking for. Instead of spinning up only 1 thread to check and process requests, you can do N of them, where N is the input. This way multiple calls of the same service may be called at once or N different services in the same package at once.

Take care to lock resources.

http://wiki.ros.org/roscpp/Overview/Callbacks%20and%20Spinning#Multi-threaded_Spinning