class documentation
One goal sent to a ROS2 action server, from Runtime.send_goal.
| Method | __aiter__ |
Return an iterator yielding feedback until the goal ends. |
| Method | __init__ |
Bind a handle to the sink and the two operations the Runtime prepared for it. |
| Method | __repr__ |
Return a representation naming the action and where the goal has got to. |
| Async Method | cancel |
Ask the server to cancel this goal. |
| Async Method | close |
End this goal's handle, releasing its ROS2 resources. Idempotent. |
| Async Method | receive |
Await the next feedback message. |
| Async Method | result |
Await how this goal ended; every ending (rejected, aborted, cancelled, succeeded) is returned. |
| Property | accepted |
Return whether the server took this goal (False only if it refused). |
| Property | outcome |
Return how this goal ended, or None while it is running (never waits). |
| Async Method | _stream |
Yield feedback until the goal ends, then stop cleanly. |
| Instance Variable | _action |
Undocumented |
| Instance Variable | _release |
Undocumented |
| Instance Variable | _released |
Undocumented |
| Instance Variable | _request |
Undocumented |
| Instance Variable | _sink |
Undocumented |
| Instance Variable | _types |
Undocumented |
def __init__(self, *, action:
str, types: ActionTypes, sink: GoalSink, request_cancel: Callable[ [], Awaitable[ None]], release: Callable[ [], Awaitable[ None]]):
¶
Bind a handle to the sink and the two operations the Runtime prepared for it.
Ask the server to cancel this goal.
Returns when the request has been answered, not when the goal has stopped; the ending
arrives on result. Does nothing for a goal that has already ended.
End this goal's handle, releasing its ROS2 resources. Idempotent.
It does not cancel the goal; a goal still running is settled as cancelled from this side, so nothing waits on a result that will never arrive.
Await the next feedback message.
| Raises | |
GoalClosedError | When the goal has ended and nothing is buffered. |