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

Revision history [back]

click to hide/show revision 1
initial version

You won't call the subscriber constantly, callback functions make that happen automatically. Whenever the topic gets a new message, the callback will run. (I didn't look in depth at your code, just answering the question)