From 59c52f6b990d7d2f737ddca6e501db1b0ecbd960 Mon Sep 17 00:00:00 2001 From: huangfu <3045324663@qq.com> Date: Thu, 22 Jan 2026 17:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend_service/src/prompts/system_prompt.txt | 56 ++++++++++++++----- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/backend_service/src/prompts/system_prompt.txt b/backend_service/src/prompts/system_prompt.txt index 986b9794..01b71831 100644 --- a/backend_service/src/prompts/system_prompt.txt +++ b/backend_service/src/prompts/system_prompt.txt @@ -146,43 +146,71 @@ ```json { "root": { - "name": "主任务-监控与拍照", "type": "Sequence", + "name": "MainTask", "children": [ { - "name": "fly_to_waypoint", "type": "action", - "params": {"x": 50.0, "y": 50.0, "z": 10.0} + "name": "fly_to_waypoint", + "params": { + "x": 50.0, + "y": 50.0, + "z": 10.0 + } }, { - "name": "并行监控5分钟", "type": "Parallel", - "params": { "policy": "success_on_one" }, + "name": "MonitorAndPhoto", + "params": { + "policy": "success_on_one" + }, "children": [ { - "name": "loiter", "type": "action", - "params": { "duration": 300 } + "name": "loiter", + "params": { + "time": 300 + } }, { - "name": "SuccessIsFailure", "type": "decorator", + "name": "SuccessIsFailure", "child": { - "name": "check_and_photo", "type": "Sequence", + "name": "CheckAndPhoto", "children": [ - {"name": "object_detect", "type": "action", "params": { "target_class": "person" }}, - {"name": "object_detected", "type": "condition", "params": { "target_class": "person" }}, - {"name": "take_photos", "type": "action", "params": { "target_class": "person" }} + { + "type": "action", + "name": "object_detect", + "params": { + "target_class": "person" + } + }, + { + "type": "condition", + "name": "object_detected", + "params": { + "target_class": "person" + } + }, + { + "type": "action", + "name": "take_photos", + "params": { + "target_class": "person" + } + } ] } } ] }, { - "name": "return_emergency", "type": "action", - "params": {"reason": "返航"} // 返航回起飞点 + "name": "return_emergency", + "params": { + "reason": "任务完成" + } } ] }