2023-10-25 10:34:46 +08:00
|
|
|
import py_trees as ptree
|
|
|
|
from typing import Any
|
2023-11-08 15:28:01 +08:00
|
|
|
from robowaiter.behavior_lib._base.Act import Act
|
2023-10-25 10:34:46 +08:00
|
|
|
|
2023-11-08 15:28:01 +08:00
|
|
|
class MoveTo(Act):
|
2023-10-25 10:34:46 +08:00
|
|
|
|
2023-11-08 16:20:02 +08:00
|
|
|
def __init__(self, *args):
|
|
|
|
super().__init__(*args)
|
2023-10-25 10:34:46 +08:00
|
|
|
|
|
|
|
def setup(self, **kwargs: Any) -> None:
|
|
|
|
return super().setup(**kwargs)
|
|
|
|
|
|
|
|
def initialise(self) -> None:
|
|
|
|
return super().initialise()
|
|
|
|
|
2023-10-25 22:12:15 +08:00
|
|
|
def _update(self) -> ptree.common.Status:
|
2023-10-25 10:34:46 +08:00
|
|
|
print('Start checking IsChatting...')
|
|
|
|
return ptree.common.Status.SUCCESS
|
|
|
|
|
|
|
|
def terminate(self, new_status: ptree.common.Status) -> None:
|
|
|
|
return super().terminate(new_status)
|
|
|
|
|