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

On second thought: never add an infinite while-loop to a callback body. Ever.

Callbacks must never block (infinitely).

Also: don't create Publishers in callbacks. Do that in the initialisation phase/section of your program.