RoboWaiter/robowaiter/behavior_lib/act/ExploreEnv.py

17 lines
370 B
Python

import py_trees as ptree
from typing import Any
from robowaiter.behavior_lib._base.Act import Act
class ExploreEnv(Act):
def __init__(self, *args):
super().__init__(*args)
def _update(self) -> ptree.common.Status:
# explore algorithm
self.scene.state["condition_set"].add("EnvExplored()")
return ptree.common.Status.RUNNING