Skip to content
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

tf2_buffer_server aborts goal without setting error if timeout is set in goal #500

Open
NikolasE opened this issue Jan 20, 2022 · 0 comments
Assignees

Comments

@NikolasE
Copy link

NikolasE commented Jan 20, 2022

Galactic from Packages

I wrote an action client for the tf2_buffer_server and tested it with invalid frames while setting the timeout in the goal. I did not check the goal-status, but only the error flag in the result. This works if I don't set the timeout, because the result.error.error is set to LOOKUP_ERROR

result->error.error = result->error.LOOKUP_ERROR;

If however I set the timeout, the action is aborted without setting the error:

auto result = std::make_shared<LookupTransformAction::Result>();

I know that you should check the goal-status, but I think it would be nicer to have a consistent result so that we always have the error filled if the action did not succeed.

My proposal would be to simply set
result->error.error = result->error.TIMEOUT_ERROR;
if the timeout was triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants