Multiple subscribers in ROS
I understand it is okay to have multiple subscribers in the same ROS Node. However I am not sure how this works. My ROS Node with multiple subscribers would be running on an ArduinoMega 2560 and would have 4 subscribers that are subscribing to velocity messages on 4 separate topics.
How would the subscribers and their callbacks respond to the msgs. Would they run in parallel or one after the other? And if they run one after the other would this depend on the order of the messages received or would it depend on where I call the subscribers themselves?
Thanks!
Please note: the OP is using
rosserial
, notroscpp
. Answers will be different forrosserial
androscpp
.