betfsm_ros.TimedWait

Bases: Generator

Node that waits for a given time and then returns succeed

stateDiagram-v2 direction LR classDef greenClass fill:darkgreen,color:white classDef yellowClass fill:yellow,color:black classDef redClass fill:darkred,color:white state "TimedWait (timeout )" as TimedWait [*] --> TimedWait TimedWait --> SUCCEED : timeout reached SUCCEED --> [*] TimedWait --> TICKING : ticking TICKING --> [*] class SUCCEED greenClass class TICKING yellowClass

__init__(name, timeout=Duration(seconds=1.0), node=None)

TimedWait waits for a given time and then returns succeed.

Parameters:
  • name (str) –

    instance name

  • timeout (Duration, default: Duration(seconds=1.0) ) –

    duration to wait.

  • node (Node, default: None ) –

    Node to use for clock,

will return TICKING until timeout is passed after which it returns SUCCEED