25 lines
738 B
Python
25 lines
738 B
Python
# from robowaiter.scene.scene import Scene
|
|
# from robowaiter.behavior_tree.ptml.ptmlCompiler import load
|
|
|
|
import os
|
|
from robowaiter import Robot, task_map
|
|
from robowaiter.utils.bt.draw import render_dot_tree
|
|
|
|
if __name__ == '__main__':
|
|
TASK_NAME = 'OT'
|
|
|
|
# create robot
|
|
project_path = "../../../"
|
|
ptml_path = os.path.join(project_path, 'behavior_tree/ptml/llm_test/Default.ptml')
|
|
behavior_lib_path = os.path.join(project_path, 'behavior_lib')
|
|
|
|
robot = Robot(ptml_path, behavior_lib_path)
|
|
|
|
# create task
|
|
task = task_map[TASK_NAME](robot)
|
|
|
|
render_dot_tree(robot.bt.root,name="llm_test")
|
|
# build and tick
|
|
# scene.BT = ptree.trees.BehaviourTree(scene.BT)
|
|
# todo: tick this bt
|
|
print(robot.bt) |