실험1
2024. 4. 1.

One-shot example task:

프로그램이나 봇이 수행해야 하는 구체적인 작업의 예를 들어 설명하는 부분입니다.

더보기

example_task = """The behavior tree represents a robot's navigation system with arm activity. The robot must visit the location "Station A", then follow the aruco with ID=7. The only available actions that must be used in the behavior tree are: "MoveTo", "FollowAruco"."""

 

One-shot example output:

이 필드에는 첫 번째 입력 필드에서 제공한 작업에 해당하는 XML 형식의 동작 트리(behavior tree)를 입력합니다. 동작 트리는 특정 작업을 수행하기 위해 실행해야 하는 단계들의 계획이나 순서를 정의하는 데 사용되는 구조입니다.

더보기

example_task = """The behavior tree represents a robot's navigation system with arm activity. The robot must visit the location "Station A", then follow the aruco with ID=7. The only available actions that must be used in the behavior tree are: "MoveTo", "FollowAruco"."""
example_output = """
<root main_tree_to_execute = "MainTree" >
    <BehaviorTree ID="MainTree">
        <Sequence>
            <MoveTo location="Station A"/>
            <FollowAruco id="7"/>
        </Sequence>
    </BehaviorTree>
</root>
"""

 

Input:

새로운 작업에 대한 설명을 입력합니다. 이것은 프로그램이 이해하고 수행할 수 있도록 새 작업을 구체적으로 기술해야 하는 곳입니다.

더보기

context = "<<SYS>> You will be provided a summary of a task performed by a behavior tree, and your objective is to express this behavior tree in XML format.\n <</SYS>>"
task = """The behavior tree represents a robot's navigation system with arm activity. The robot must visit the location "ArucoStand", then follow the arucos given their IDs: 4, 2, and 5. Finally the robot reset the manipulator to the parking position and goes to the location "Parking". The only available actions that must be used in the behavior tree are: "MoveTo", "FollowAruco" and "ResetManipulator"."""

오류

더보기

(btgenbotv1) kime@DESKTOP-NFV50BR:~/BTGenBot-2/bt_generator$ python3 btgenbot.py
Traceback (most recent call last):
  File "/home/kime/BTGenBot-2/bt_generator/btgenbot.py", line 84, in submit
    self.generate(example_task, example_output, task)
  File "/home/kime/BTGenBot-2/bt_generator/btgenbot.py", line 92, in generate
    with open(config_file_path, 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'bt_generator/config/params.yaml'
Aborted