robokudo.behaviours.run_until

Classes

RunUntil

Returns py_trees.Status.RUNNING until wait_seconds is reached starting from the first call to update. If update is

Module Contents

class robokudo.behaviours.run_until.RunUntil(name='RunUntil', wait_seconds: float = 10, reset_on_done: bool = True)

Bases: py_trees.Behaviour

Returns py_trees.Status.RUNNING until wait_seconds is reached starting from the first call to update. If update is called after the Behaviour waited for wait_seconds or longer py_trees.Status.SUCCESS will be returned. If reset_on_done is True this will start over after returning py_trees.Status.SUCCESS once.

wait_seconds = 10
reset_on_done = True
waited_seconds = 0
last_time = None
initialise() None
update() py_trees.common.Status