class documentation

class ActionBinding(AwaitedBinding):

View In Hierarchy

A ROS2 action exposed as a finite Skill on the declaring Component.

The goal becomes the Skill's Parameters (written before Start), the feedback its Monitoring (written while the goal runs) and the result its FinalResultData. The outcome drives the state machine and is not data of its own. Each message is narrowed by its own include/exclude pair.

Method __post_init__ Refuse a custom implementation class that is not a subclass of the stock one.
Class Variable kind Undocumented
Instance Variable action_type The ROS2 action type, package/action/Name. Required, so the address space does not depend on start-up timing. A type whose package is not installed is fatal at init.
Instance Variable exclude Field patterns removing goal fields, after include has narrowed. A selection that leaves the goal unbuildable is refused at init instead of filled from a default.
Instance Variable feedback_depth How many feedback messages the goal handle buffers before the oldest is dropped.
Instance Variable feedback_exclude Field patterns removing feedback fields.
Instance Variable feedback_include Field patterns narrowing the feedback.
Instance Variable feedback_rename New browse names for feedback fields, as rename does.
Instance Variable goal_from Builds the goal message from the Parameters, or None for the default. Python-only.
Instance Variable include Field patterns narrowing the goal; empty means every field.
Instance Variable name The Binding's name, also the Skill's name. Its variables are named for the field path alone.
Instance Variable path The ROS2 action.
Instance Variable rename New browse names by field path, as on MonitoringBinding.
Instance Variable required Whether the StartupSkill waits for the action server to be discovered before Running.
Instance Variable result_exclude Field patterns removing result fields.
Instance Variable result_include Field patterns narrowing the result.
Instance Variable result_rename New browse names for result fields, as rename does.
Instance Variable result_to Turns the result message into FinalResultData values, or None for the default. Python-only.
Instance Variable server_timeout Seconds Start waits for an action server before halting, so a Skill does not sit in Starting against a robot that is off.
Instance Variable skill_type A subclass of opensmi.ros2.server.skill.ROS2ActionSkill, or None for the stock one. Python-only; refused when the Binding is constructed if it is not a subclass.
Instance Variable startup_timeout Seconds that wait lasts, or None for the deployment's default. Refused when the Binding is constructed without required.
Property feedback_selection Return the feedback's field selection.
Property needs_the_graph Return False: the declaration carries its type.
Property result_selection Return the result's field selection.
Property selection Return the goal's field selection.
def __post_init__(self):

Refuse a custom implementation class that is not a subclass of the stock one.

Raises
ImplementationClassErrorWhen skill_type does not derive from opensmi.ros2.server.skill.ROS2ActionSkill.
RequiredDeclarationErrorWhen startup_timeout is declared without required, or is not positive.
kind: ClassVar[str] =

Undocumented

action_type: str =

The ROS2 action type, package/action/Name. Required, so the address space does not depend on start-up timing. A type whose package is not installed is fatal at init.

exclude: tuple[str, ...] =

Field patterns removing goal fields, after include has narrowed. A selection that leaves the goal unbuildable is refused at init instead of filled from a default.

feedback_depth: int =

How many feedback messages the goal handle buffers before the oldest is dropped.

feedback_exclude: tuple[str, ...] =

Field patterns removing feedback fields.

feedback_include: tuple[str, ...] =

Field patterns narrowing the feedback.

feedback_rename: dict[str, str] =

New browse names for feedback fields, as rename does.

goal_from: GoalFunction | None =

Builds the goal message from the Parameters, or None for the default. Python-only.

include: tuple[str, ...] =

Field patterns narrowing the goal; empty means every field.

name =

The Binding's name, also the Skill's name. Its variables are named for the field path alone.

path: str =

The ROS2 action.

rename: dict[str, str] =

New browse names by field path, as on MonitoringBinding.

required =

Whether the StartupSkill waits for the action server to be discovered before Running.

result_exclude: tuple[str, ...] =

Field patterns removing result fields.

result_include: tuple[str, ...] =

Field patterns narrowing the result.

result_rename: dict[str, str] =

New browse names for result fields, as rename does.

result_to: ResultFunction | None =

Turns the result message into FinalResultData values, or None for the default. Python-only.

server_timeout: float =

Seconds Start waits for an action server before halting, so a Skill does not sit in Starting against a robot that is off.

skill_type: type | None =

A subclass of opensmi.ros2.server.skill.ROS2ActionSkill, or None for the stock one. Python-only; refused when the Binding is constructed if it is not a subclass.

startup_timeout =

Seconds that wait lasts, or None for the deployment's default. Refused when the Binding is constructed without required.

@property
feedback_selection: FieldSelection =

Return the feedback's field selection.

@property
needs_the_graph: bool =

Return False: the declaration carries its type.

@property
result_selection: FieldSelection =

Return the result's field selection.

@property
selection: FieldSelection =

Return the goal's field selection.