Question about Multiple callbacks in spinOnce()
Dear all,
I have a node which subscribes to 3 different topics and let's call them
A: 80Hz B: 120Hz C: 50Hz
And I define the subscribers like this:
nh.subscribe("A/B/C", 1, A/B/C_callback, ros::TransportHints().tcpNoDelay());
in the main loop(which is 60Hz), I call spinOnce()
and do some control task. But I have noticed that at some times I never enter B_callback
. I can confirm that the publishers are all working, so why is this happening?
Best,
Ziyang