2023-10-10 20:47:32 +08:00
|
|
|
import py_trees as ptree
|
|
|
|
from typing import Any
|
|
|
|
|
|
|
|
|
2023-10-17 16:28:36 +08:00
|
|
|
class CoffeeCupFound(ptree.behaviour.Behaviour):
|
|
|
|
def __init__(self, name: str, scene):
|
2023-10-10 20:47:32 +08:00
|
|
|
super().__init__(name)
|
|
|
|
|
|
|
|
def setup(self, **kwargs: Any) -> None:
|
|
|
|
return super().setup(**kwargs)
|
2023-10-17 16:28:36 +08:00
|
|
|
|
2023-10-10 20:47:32 +08:00
|
|
|
def initialise(self) -> None:
|
|
|
|
return super().initialise()
|
2023-10-17 16:28:36 +08:00
|
|
|
|
2023-10-10 20:47:32 +08:00
|
|
|
def update(self) -> ptree.common.Status:
|
2023-10-17 16:28:36 +08:00
|
|
|
print("Start checking IsChatting...")
|
2023-10-10 20:47:32 +08:00
|
|
|
return ptree.common.Status.SUCCESS
|
2023-10-17 16:28:36 +08:00
|
|
|
|
2023-10-10 20:47:32 +08:00
|
|
|
def terminate(self, new_status: ptree.common.Status) -> None:
|
|
|
|
return super().terminate(new_status)
|