RoboWaiter/robowaiter/behavior_lib/act/ExploreEnv.py

17 lines
370 B
Python
Raw Normal View History

import py_trees as ptree
from typing import Any
2023-11-08 16:20:02 +08:00
from robowaiter.behavior_lib._base.Act import Act
2023-11-08 16:20:02 +08:00
class ExploreEnv(Act):
2023-11-08 16:20:02 +08:00
def __init__(self, *args):
super().__init__(*args)
2023-10-25 22:12:15 +08:00
def _update(self) -> ptree.common.Status:
2023-11-13 10:32:56 +08:00
# explore algorithm
self.scene.state["condition_set"].add("EnvExplored()")
return ptree.common.Status.RUNNING