-
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
Race condition: Goal state is SUCCEEDED before result is available. #116
Comments
Hi @jorgenfb I also faced this issue when i am calling client.get_state() at around 5Hz. Have you find a solution / workaround for this? Best, |
Yes, have a look at ros/geometry2#178. Especially this comment: ros/geometry2#178 (comment). You might be able to use:
|
Isn't the |
Just your current thread. If you are only spinning until a result is ready,
then you can use wait_for_result without any issue
Regards
Jørgen Borgesen
nLink
+47 456 19 649
The content of this e-mail is of a confidential and proprietary nature and
may be protected by law. The content is only intended for the individual(s)
named in the message. If you have received this e-mail by mistake, please
reply to this message and delete the e-mail and its content afterwards. You
may not copy or distribute any of the content in this e-mail.
…On Wed, Oct 27, 2021 at 10:13 AM HappySamuel ***@***.***> wrote:
Isn't the client.wait_for_result() will put whole system on wait? until
result come out?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#116 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHQGM7BU2CBUTREKYVNCPDUI6YBFANCNFSM4F7WMEDA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SimpleActionClient seems to have a race condition. Calling
get_state()
can give the SUCCEEDED state before a result is available.This is a package showing the problem. It uses a
SimpleActionClient
to make a request and then checksclient.get_state()
at a high frequency to check forSUCCEEDED
state and then checks ifclient.get_result()
returns a result. An error is printed if the result is missing. It makes a maximum of 1000 requests to try to trigger this error. Runroslaunch action_client_breaker action_client_breaker.test
and wait for a ERROR message in the console.action_client_breaker.zip
BufferClient in tf2_ros was previously affected by this issue. See ros/geometry2#178.
The text was updated successfully, but these errors were encountered: