class ActionBinding(AwaitedBinding):
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 |
Refuse a custom implementation class that is not a subclass of the stock one. |
| Class Variable | kind |
Undocumented |
| Instance Variable | action |
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 |
How many feedback messages the goal handle buffers before the oldest is dropped. |
| Instance Variable | feedback |
Field patterns removing feedback fields. |
| Instance Variable | feedback |
Field patterns narrowing the feedback. |
| Instance Variable | feedback |
New browse names for feedback fields, as rename does. |
| Instance Variable | goal |
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 |
Field patterns removing result fields. |
| Instance Variable | result |
Field patterns narrowing the result. |
| Instance Variable | result |
New browse names for result fields, as rename does. |
| Instance Variable | result |
Turns the result message into FinalResultData values, or None for the default. Python-only. |
| Instance Variable | server |
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 |
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 |
Seconds that wait lasts, or None for the deployment's default. Refused when the Binding is constructed without required. |
| Property | feedback |
Return the feedback's field selection. |
| Property | needs |
Return False: the declaration carries its type. |
| Property | result |
Return the result's field selection. |
| Property | selection |
Return the goal's field selection. |
Refuse a custom implementation class that is not a subclass of the stock one.
| Raises | |
ImplementationClassError | When skill_type does not derive from
opensmi.ros2.server.skill.ROS2ActionSkill. |
RequiredDeclarationError | When startup_timeout is declared without required, or is not positive. |
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.
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.
The Binding's name, also the Skill's name. Its variables are named for the field path alone.
Seconds Start waits for an action server before halting, so a Skill does not sit in Starting against a robot that is off.
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.
Seconds that wait lasts, or None for the deployment's default. Refused when the Binding is constructed without required.