This commit is contained in:
parent
460e9ba991
commit
89e5e479eb
|
@ -1,11 +1,11 @@
|
|||
|
||||
# from .scene import Scene
|
||||
# from robowaiter.scene.tasks.AEM import SceneAEM
|
||||
# from robowaiter.scene.tasks.GQA import SceneGQA
|
||||
# from robowaiter.scene.tasks.VLN import SceneVLN
|
||||
# from robowaiter.scene.tasks.VLM import SceneVLM
|
||||
# from robowaiter.scene.tasks.Open_tasks import SceneOT
|
||||
# from robowaiter.scene.tasks.Auto_tasks import SceneAT
|
||||
# from robowaiter.scene.tasks_no_ui.AEM import SceneAEM
|
||||
# from robowaiter.scene.tasks_no_ui.GQA import SceneGQA
|
||||
# from robowaiter.scene.tasks_no_ui.VLN import SceneVLN
|
||||
# from robowaiter.scene.tasks_no_ui.VLM import SceneVLM
|
||||
# from robowaiter.scene.tasks_no_ui.Open_tasks import SceneOT
|
||||
# from robowaiter.scene.tasks_no_ui.Auto_tasks import SceneAT
|
||||
|
||||
# task_map = {
|
||||
# "AEM": SceneAEM,
|
||||
|
|
|
@ -102,7 +102,7 @@ class UI(QMainWindow, Ui_MainWindow):
|
|||
self.thread = TaskThread(run_scene, self.scene_cls, self.robot_cls,self.scene_queue,self.ui_queue)
|
||||
self.thread.start()
|
||||
|
||||
self.scene_func((f"run_example",name))
|
||||
self.scene_func((f"run_{name}",))
|
||||
return btn_example_on_click
|
||||
|
||||
def btn_say_on_click(self):
|
||||
|
|
|
@ -33,8 +33,10 @@ class SceneUI(Scene):
|
|||
while not self.stoped:
|
||||
self.step()
|
||||
|
||||
def run_example(self,example_name):
|
||||
if example_name == 'VLN':
|
||||
def run_AEM(self):
|
||||
pass
|
||||
|
||||
def run_VLN(self):
|
||||
self.gen_obj()
|
||||
self.add_walkers([
|
||||
[29, 60, 520], # 顾客 0
|
||||
|
@ -63,9 +65,20 @@ class SceneUI(Scene):
|
|||
(-1, self.customer_say, (0, "谢谢你!这儿还不错!")),
|
||||
]
|
||||
|
||||
if example_name == 'AEM':
|
||||
def run_VLM(self):
|
||||
pass
|
||||
|
||||
def run_GQA(self):
|
||||
pass
|
||||
|
||||
def run_OT(self):
|
||||
pass
|
||||
|
||||
def run_AT(self):
|
||||
pass
|
||||
|
||||
def run_reset(self):
|
||||
pass
|
||||
|
||||
def init_robot(self):
|
||||
# init robot
|
||||
|
|
Loading…
Reference in New Issue