Closed caelinsutch closed 4 years ago
The comments do appear somewhat misleading. The sendGoal
function returns a Promise which resolves to a goal handle. To get the final result (i.e. the completion) you need to call getResult()
on the goal handle and wait for that Promise to resolve. You can see this in the examples here
That promise will resolve when the action completes, and it will contain the final result and status. Let me know if you need more info.
Shall we update the comments accordingly to make it clear?
I think the docs should be updated for sure.
I can't figure out how to implement a callback on an
ActionClient
when the action completes, just on updates and when the action is successfully received. As mentioned in line 190 here:However, on line 313, I see the function
_getResult
:Is this something that should be implemented, or an accepted restriction?