Skip to content

Action NavigateToPosition has no failure indicator? #486

Closed Answered by alsora
slowrunner asked this question in Questions
Discussion options

You must be logged in to vote

ROS 2 action interfaces should not have an explicit success/failure flag in their result, as it's a redundant information.

When a client sends a goal request, eventually they will receive a WrappedResult object.
This object will contain two things:

  • the result data-structure, as defined in the ROS 2 action interface
  • the result code, indicating success/cancelled/aborted

So, if you need to know if a goal succeeded or not, you should look at the results code contained in the wrapped result data-structure rather than at the actual result object itself.
See the examples in C++ and the examples in Python

Does the action complete when the bot is within some tolerance xy from the goal position

Y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by slowrunner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants