Ask Your Question
1

actionlib - SimpleActionServer - Accept new goal only on certain condition

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

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 -0500

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 673 times

Last updated: Jun 17 '11