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

Your ActionServer is a regular ros node. You must create a loop inside what you call goalCB(), and do all your "server work" inside that loop. You must sleep inside the loop, usually using a ros::Rate object. The SimpleActonServer tutorial shows you how to do this: link

ROS will check for preempt each time you call sleep() on the Rate object, so that will work fine.