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

Are service callbacks queued?

asked 2014-10-16 08:25:16 -0500

arennuit gravatar image

Dear all,

Reading the doc and tutorials I understand that when the topics are received (on the subscriber side) they are queued in a callback queue before being processed (on a call to spin(), spinOnce(), callAvailable(), callOne()...). Now what I did not get is weather the service callbacks (on the server side) were also queued in the same callback queue. Hence the question:

Are the service callbacks queued in the same callback queue than the topics or are they processed independently as soon as they are received (i.e. without waiting for a spin(), spinOnce(), callAvailable(), callOne()...))?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-16 13:39:27 -0500

paulbovbel gravatar image

By default, yes they are all queued on the node's callback queue.

edit flag offensive delete link more


Simple and clear, thanks!

arennuit gravatar image arennuit  ( 2014-10-16 15:59:06 -0500 )edit

Question Tools

1 follower


Asked: 2014-10-16 08:25:16 -0500

Seen: 1,387 times

Last updated: Oct 16 '14