SimpleActionGoalState doesn't include INACTIVE [closed]
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?
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.
Maybe also check issue #40 and provide some feedback there. It seems to me those are not the same, but related use cases...
Thank you mig, you are correct.