Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Messages don't "change". Messages are send from someone and the received. So, the callback will be called every time a new message is received. This is independent from how fast the loop inside ros::spin goes (unless messages arrive faster than it can handle them) and from the values of the message, i.e., if someone sends the same message 5 times with the same unchanged values, the callback should be called 5 times.