class documentation

class GoalOutcome(Outcome):

View In Hierarchy

How one ROS2 goal ended, and what it ended with.

The status is the single fact; the properties derive from it, and Outcome.ok agrees because every ending except success carries exactly one fault line.

Instance Variable accepted Whether the server took the goal at all.
Instance Variable result The result message, or None when the goal was rejected. An aborted or cancelled goal often has a partial one.
Instance Variable status Where the goal ended up, as ROS2 reports it.
Property aborted Return whether the server gave up on the goal itself.
Property canceled Return whether the goal stopped because somebody asked it to.
Property succeeded Return whether the goal ran to completion and the server said so.

Inherited from Outcome:

Instance Variable faults One human-readable line per thing that went wrong, in the order it went wrong. Empty when the operation went cleanly.
Property ok Return whether the operation went cleanly.
accepted: bool =

Whether the server took the goal at all.

result: Message | None =

The result message, or None when the goal was rejected. An aborted or cancelled goal often has a partial one.

status: GoalStatus =

Where the goal ended up, as ROS2 reports it.

@property
aborted: bool =

Return whether the server gave up on the goal itself.

@property
canceled: bool =

Return whether the goal stopped because somebody asked it to.

@property
succeeded: bool =

Return whether the goal ran to completion and the server said so.