class documentation

class ROS2FinitePublisherSkill(ROS2PublisherSkill, FiniteSkillLogicMixin, BaseSkill):

Constructor: ROS2FinitePublisherSkill(binding, runtime, context, minimum_access_level)

View In Hierarchy

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_running 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_message Return the message to publish, given what a client wrote into the Parameters.
Async Method close_publisher Release this Skill's ROS2 publisher. Idempotent.
Async Method read_parameters Return what the ParameterSet holds now, by variable name.
Class Variable callable_kind Undocumented
Property binding Return the declaration this Skill was built from.
Property consecutive_failures Return how many publishes in a row have failed, as the tolerance counts them.
Property message_type 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_qos_provenance Return what this Skill's publisher offers and where that came from, or None.
Async Method _create_own_parameters Create the Parameters that are not message fields. A finite Skill has none.
Async Method _handle_resetting 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_a_failure 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_type Undocumented
Instance Variable _parameters Undocumented
Instance Variable _plan Undocumented
Instance Variable _publisher Undocumented
Instance Variable _runtime Undocumented
async def _handle_running(self): ΒΆ

Publish once. Returning reaches Completed; any failure raises and halts.

A finite Skill has one publish and nothing to absorb, which is why a non-zero tolerated_failures on a finite declaration is refused.