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

actionlib - SimpleActionServer - Accept new goal only on certain condition

asked 2011-06-16 21:48:57 -0500

Enric Galceran gravatar image


I couldn't come up with an easy way to do the following having a look at actionlib's source code and documentation:

If I'm right, SimpleActionServer's default policy is to cancel the active goal upon a new goal arrival. What I try to do is make the server only accept a new goal if the goal parameters meet certain condition.

For instance, supose that my goal have an integer parameter called "priority". I'd like a new goal to be accepted (hence preemping the active goal) by the server if the new arrived goal priority is bigger than the active's.

Is it possible to do this by only using SimpleActionServer's ExecuteCallback?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-06-17 12:34:26 -0500

mmwise gravatar image

if you want more advanced goal behavior you should use the actionserver instead of the simpleactionserver see the actionlib documentation:

edit flag offensive delete link more

Question Tools


Asked: 2011-06-16 21:48:57 -0500

Seen: 830 times

Last updated: Jun 17 '11