ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This really depends on the type of spinner you use to process ROS messages.
The page here has a good summary, the simple ros::spin()
is single threaded so they will block the rest of your code, but there are several multi-threaded versions to. You'll have to make sure your callbacks are thread safe for the use of these to be reliable though.