提示词修改
This commit is contained in:
@@ -146,43 +146,71 @@
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"root": {
|
"root": {
|
||||||
"name": "主任务-监控与拍照",
|
|
||||||
"type": "Sequence",
|
"type": "Sequence",
|
||||||
|
"name": "MainTask",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"name": "fly_to_waypoint",
|
|
||||||
"type": "action",
|
"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",
|
"type": "Parallel",
|
||||||
"params": { "policy": "success_on_one" },
|
"name": "MonitorAndPhoto",
|
||||||
|
"params": {
|
||||||
|
"policy": "success_on_one"
|
||||||
|
},
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"name": "loiter",
|
|
||||||
"type": "action",
|
"type": "action",
|
||||||
"params": { "duration": 300 }
|
"name": "loiter",
|
||||||
|
"params": {
|
||||||
|
"time": 300
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "SuccessIsFailure",
|
|
||||||
"type": "decorator",
|
"type": "decorator",
|
||||||
|
"name": "SuccessIsFailure",
|
||||||
"child": {
|
"child": {
|
||||||
"name": "check_and_photo",
|
|
||||||
"type": "Sequence",
|
"type": "Sequence",
|
||||||
|
"name": "CheckAndPhoto",
|
||||||
"children": [
|
"children": [
|
||||||
{"name": "object_detect", "type": "action", "params": { "target_class": "person" }},
|
{
|
||||||
{"name": "object_detected", "type": "condition", "params": { "target_class": "person" }},
|
"type": "action",
|
||||||
{"name": "take_photos", "type": "action", "params": { "target_class": "person" }}
|
"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",
|
"type": "action",
|
||||||
"params": {"reason": "返航"} // 返航回起飞点
|
"name": "return_emergency",
|
||||||
|
"params": {
|
||||||
|
"reason": "任务完成"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user