You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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
geometry2/tf2_ros/src/buffer_server.cpp
Line 75 in 74b873a
If however I set the timeout, the action is aborted without setting the error:
geometry2/tf2_ros/src/buffer_server.cpp
Line 98 in 74b873a
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.
The text was updated successfully, but these errors were encountered: