提示词修改
This commit is contained in:
@@ -146,43 +146,71 @@
|
||||
```json
|
||||
{
|
||||
"root": {
|
||||
"name": "主任务-监控与拍照",
|
||||
"type": "Sequence",
|
||||
"name": "MainTask",
|
||||
"children": [
|
||||
{
|
||||
"type": "action",
|
||||
"name": "fly_to_waypoint",
|
||||
"type": "action",
|
||||
"params": {"x": 50.0, "y": 50.0, "z": 10.0}
|
||||
"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": [
|
||||
{
|
||||
"type": "action",
|
||||
"name": "loiter",
|
||||
"type": "action",
|
||||
"params": { "duration": 300 }
|
||||
"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": "任务完成"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user