-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimpleActionClient is tracking goal #40
Comments
Could you try this? I think this will work, let me know if it's not what you intended. SimpleActionClient simple_action_client(...);
bool isTrackingGoal = simple_action_client.getState() != SimpleClientGoalState::LOST; Thanks! |
I have finally checked that method but there is a problem: if the server is not tracking any goal it returns LOST (as you mention) but also shows an error:
Which is annoying, because in my opinion this does not mean that we are incorrectly using it. The only solution I can see is to store an additional flag to know whether any goal has been sent, and update it when the result is received. Any further ideas? |
I agree with jvgomez. Is there any reason to not simply remove the error message? I think this would be the easiest solution to the problem. |
I also agree with jgomez. It's useful if you need to have multiple action clients in the same node, and juggle in between the two. |
First of all, I would like to endorse this request!
The code above has the variable |
Any progress on this topic? |
I have reached a point in my application in which I would like to have a SimpleActionClient member which allows me to know if the server is currently pursuing a goal. Something like
action_server.isTrackingGoal()
.I guess is possible (I haven't checked in detail the SimpleActionClient implementation). Is there any reason not to do this? I think I could try out an implementation in case it is possible.
The text was updated successfully, but these errors were encountered: