26 lines
650 B
Python
26 lines
650 B
Python
|
import py_trees as ptree
|
||
|
from robowaiter.behavior_lib._base.Act import Act
|
||
|
from robowaiter.algos.navigator.navigate import Navigator
|
||
|
|
||
|
class GreatCustomer(Act):
|
||
|
can_be_expanded = False
|
||
|
num_args = 0
|
||
|
valid_args = ()
|
||
|
|
||
|
def __init__(self, *args):
|
||
|
super().__init__(*args)
|
||
|
|
||
|
@classmethod
|
||
|
def get_info(cls):
|
||
|
info = {}
|
||
|
info['pre'] = set()
|
||
|
info["add"] = set()
|
||
|
info["del_set"] = set()
|
||
|
info['cost']=0
|
||
|
return info
|
||
|
|
||
|
def _update(self) -> ptree.common.Status:
|
||
|
|
||
|
self.scene.chat_bubble("欢迎光临!请问有什么可以帮您?")
|
||
|
return ptree.common.Status.RUNNING
|