betfsm.TimedRepeat
Bases: GeneratorWithState
Repeats an underlying state for a given number of times and a given time interval.
This is the pure python version of this class, there also exists a ROS2 version.
__init__(name, maxcount, timeout, state)
TimedRepeat repeats the underlying state each timeout duration, until either the specified maxcount
iterations is reached or the underlying state returns anything else besides TICKING or SUCCEED.
TimedRepeat returns TICKING or finishes with SUCCEED if maxcount is reached, or another outcome if
such outcome is returned by the underlying state.
| Parameters: |
|
|---|
Note
if the underlying state returns later than timeout with a non-ticking outcome, an exception will be raised
and abort is called.