betfsm_ros.Timeout

Bases: GeneratorWithState

Timeout

warning

obsolete, EventOutcome with Timeout_Condition recommended.

__init__(name, timeout, state, node=None)

Timeout executes the underlying state at long as its outcome is TICKING. It finishes when the outcome is not ticking and returns this outcome. It also finishes when the given duration is exceeded and returns TIMEOUT.

Parameters:
  • name (str) –

    instance name

  • timeout (Duration) –

    underlying state is triggered every timeout duration

  • state (TickingState) –

    underlying state

  • node (Node, default: None ) –

    ROS2 node, if None, BeTFSMNode.get_instance() is used

Warning

assumes that the underlying state sufficiently yields TICKING! Don't use this if the underlying state completely blocks!