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_feedback 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_cancel Undocumented
Instance Variable _sink Undocumented
Instance Variable _types Undocumented
def __aiter__(self) -> AsyncIterator[Message]:

Return an iterator yielding feedback until the goal ends.

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.

def __repr__(self) -> str:

Return a representation naming the action and where the goal has got to.

async def cancel(self):

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.

async def close(self):

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.

async def receive_feedback(self) -> Message:

Await the next feedback message.

Raises
GoalClosedErrorWhen the goal has ended and nothing is buffered.
async def result(self) -> GoalOutcome:

Await how this goal ended; every ending (rejected, aborted, cancelled, succeeded) is returned.

@property
accepted: bool =

Return whether the server took this goal (False only if it refused).

@property
outcome: GoalOutcome | None =

Return how this goal ended, or None while it is running (never waits).

async def _stream(self) -> AsyncIterator[Message]:

Yield feedback until the goal ends, then stop cleanly.

_action =

Undocumented

_release =

Undocumented

_released: bool =

Undocumented

_request_cancel =

Undocumented

_sink =

Undocumented

_types =

Undocumented