SimpleActionGoalState doesn't include INACTIVE [closed]

asked 2016-01-27 13:19:40 -0600

Robocop87 gravatar image

Hi everyone,

I needed to check to see if my SimpleActionClient had sent a goal to the ActionServer, and if it had, whether it was in progress or finished. I wanted to use the getState() method, but if you use getState before a goal is given, you get an error saying "Trying to getState() when no goal is running. You are incorrectly using SimpleActionClient". In light of this, I settled for a simple member variable boolean flag. While this works, I would prefer to only have to deal with one interface when asking about the status of an action.

Why doesn't SimpleActionGoalState include an INACTIVE state which can be returned when no goal has been sent by the Client?

edit retag flag offensive reopen merge delete

Closed for the following reason too subjective or argumentative by mgruhler
close date 2016-01-28 01:38:35.035214

Comments

1

Sorry to close this, but I guess there is no way to answer this any other way than "because it has been implemented this way".

Your observation is correct, but this should be a feature request/issue on github.

mgruhler gravatar image mgruhler  ( 2016-01-28 01:40:29 -0600 )edit
1

Maybe also check issue #40 and provide some feedback there. It seems to me those are not the same, but related use cases...

mgruhler gravatar image mgruhler  ( 2016-01-28 01:43:15 -0600 )edit

Thank you mig, you are correct.

Robocop87 gravatar image Robocop87  ( 2016-02-02 12:04:10 -0600 )edit