SimpleActionServer: checking isNewGoalAvailable and isPreemptedRequested not working [closed]

asked 2011-12-09 16:02:21 -0500

Pouyan gravatar image

updated 2014-01-28 17:10:58 -0500

ngrennan gravatar image

Hi,

I have registered a goalCB and preemptCB callbacks in a SimpleActionServer. 1- Server receives the first goal. 2-goalCB is called, it accepts the goal and then continues doing some other tasks. 3- when goalCB is still running, in the middle of its execution, server is sent another goal. 4- When I am still in the goalCB (triggered by the first goal) and the second goal is now supposed to have been arrived in the server (I ensure this by proper delays in the code), I check isNewGoalAvailable() and isPreemptedRequested() and both of them return false. Aren't they suppose to be used for polling information about receiving new goals or cancel requests?

When the goalCB finishes its process, then preemptCB is called, then goalCB is called for the second time (triggered by the second goal) and now before accepting the second goal, isNewGoalAvailable() and isPreemptedRequested() return true which is the correct behaviour but not much useful anymore!

I might missing something big here, please help me out.

Cheers, Pouyan

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-02-03 07:45:32