class documentation
class ROS2FinitePublisherSkill(ROS2PublisherSkill, FiniteSkillLogicMixin, BaseSkill):
Constructor: ROS2FinitePublisherSkill(binding, runtime, context, minimum_access_level)
The one-shot push: publish once on Start, then reach Completed.
A second push is Reset, write, Start. Ready is reachable only by an explicit reset, because resetting automatically would discard what a client wrote.
| Async Method | _handle |
Publish once. Returning reaches Completed; any failure raises and halts. |
Inherited from ROS2PublisherSkill:
| Method | __init__ |
Resolve everything about the declaration that can be wrong, before any node exists. |
| Async Method | build |
Return the message to publish, given what a client wrote into the Parameters. |
| Async Method | close |
Release this Skill's ROS2 publisher. Idempotent. |
| Async Method | read |
Return what the ParameterSet holds now, by variable name. |
| Class Variable | callable |
Undocumented |
| Property | binding |
Return the declaration this Skill was built from. |
| Property | consecutive |
Return how many publishes in a row have failed, as the tolerance counts them. |
| Property | message |
Return the message dataclass this Skill publishes. |
| Property | publisher |
Return the ROS2 publisher this Skill owns, or None before init and after shutdown. |
| Property | ros2 |
Return what this Skill's publisher offers and where that came from, or None. |
| Async Method | _create |
Create the Parameters that are not message fields. A finite Skill has none. |
| Async Method | _handle |
Clear the failure count. The ParameterSet stays, so nothing a client wrote is lost. |
| Async Method | _init |
Let opensmi build the Skill, create the ParameterSet variables, and prove them. |
| Async Method | _note |
Count one failed publish, report it, and halt when the tolerance is spent. |
| Async Method | _publish |
Publish one snapshot of the Parameters, and let the continuity decide what a failure is. |
| Async Method | _report |
Fire one BindingEvent about this Binding, and never let the reporting be the fault. |
| Instance Variable | _binding |
Undocumented |
| Instance Variable | _context |
Undocumented |
| Instance Variable | _emit |
Undocumented |
| Instance Variable | _failures |
Undocumented |
| Instance Variable | _message |
Undocumented |
| Instance Variable | _parameters |
Undocumented |
| Instance Variable | _plan |
Undocumented |
| Instance Variable | _publisher |
Undocumented |
| Instance Variable | _runtime |
Undocumented |