betfsm.betfsm.TimedWait

Bases: Generator

Node that waits for a given time and then returns succeed

This is the plain python version, there also exists a ROS2 version.

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=1.0)

TimedWait waits for a given time and then returns succeed.

Parameters:
  • name (str) –

    instance name

  • timeout (float, default: 1.0 ) –

    duration to wait.

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