RoboWaiter/robowaiter/behavior_lib/cond/NeedExplore.py

24 lines
696 B
Python
Raw Normal View History

2023-11-08 16:20:02 +08:00
import py_trees as ptree
from typing import Any
from robowaiter.behavior_lib._base.Cond import Cond
2023-11-30 17:24:42 +08:00
class NeedExplore(Cond):
2023-11-08 16:20:02 +08:00
def __init__(self):
super().__init__()
def _update(self) -> ptree.common.Status:
2023-11-30 17:24:42 +08:00
# arg_str = self.arg_str
#
# if f'EnvExplored()' not in self.scene.state["condition_set"]:
# return ptree.common.Status.SUCCESS
# else:
# return ptree.common.Status.FAILURE
return ptree.common.Status.FAILURE
2023-11-13 10:32:56 +08:00
# if self.scene.status?
# if self.scene.state['map']['2d'] == None:
# return ptree.common.Status.FAILURE
# else:
# return ptree.common.Status.SUCCESS