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

actionlib - SimpleActionServer - Accept new goal only on certain condition

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

Enric Galceran gravatar image

Hi,

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?

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

mmwise gravatar image

if you want more advanced goal behavior you should use the actionserver instead of the simpleactionserver see the actionlib documentation: http://www.ros.org/wiki/actionlib

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 847 times

Last updated: Jun 17 '11