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

Hi, The callback function is called every time when it receives new messages. It depends on the rate of the publishing node. In your program, your callback function is called multiple times for the same goal.

The simplest method you can use is->>> remember the last goal in your program and set the new goal if the current goal is different with your previous goal.