更改了 ptml 输出格式

This commit is contained in:
Caiyishuai 2023-11-14 19:30:06 +08:00
parent 7c3ba9edee
commit a012fabf6d
3 changed files with 1038 additions and 294 deletions

View File

@ -183,7 +183,7 @@ class OptBTExpAlgorithm:
if isinstance(child, Leaf):
if child.type == 'cond':
self.ptml_string += "cond "
c_set_str = ', '.join(map(str, child.content)) + "\n"
c_set_str = '\n cond '.join(map(str, child.content)) + "\n"
self.ptml_string += c_set_str
elif child.type == 'act':
if '(' not in child.content.name:

View File

@ -11,12 +11,12 @@ class SceneVLM(Scene):
super().__init__(robot)
# 在这里加入场景中发生的事件, (事件发生的时间,事件函数)
self.event_list = [
# (5, self.create_chat_event("测试VLM做一杯咖啡")),
(5, self.create_chat_event("测试VLM做一杯咖啡")),
# (5, self.create_chat_event("测试VLM倒一杯水")),
# (5, self.create_chat_event("测试VLM开空调")),
# (5, self.create_chat_event("测试VLM关空调")),
# (5, self.create_chat_event("测试VLM开大厅灯")),
(5, self.create_chat_event("测试VLM拖地")),
# (5, self.create_chat_event("测试VLM拖地")),
# (5, self.create_chat_event("测试VLM擦桌子")),
# (5, self.create_chat_event("测试VLM整理椅子")),
# (5, self.create_chat_event("测试VLM把冰红茶放到Table2")),

File diff suppressed because it is too large Load Diff