In which order are callback functions in a node which offers a service and also subscribes to a topic?
I want to use a node that both offers a service and subscribes to a topic. If, when ros::spin() is called I have both a new message in the topic and a request from the service, which callback function is called first? The service or the subscriber one?