Files
DronePlanning/tools/rag/knowledge_base/pattern/scene_patterns.ndjson
2026-02-26 19:37:55 +08:00

6 lines
9.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"scene_id":"scene1_perimeter_window_ground","intent_type":"patrol_or_monitor","trigger_terms":["面前大楼","12米","外围","窗户"],"text":"地面起飞后到面前大楼约12米高度沿外围巡查打开窗户如发现窗户则拍照回传。","reasoning_path":"无人机在地面,需先自检并起飞到指定高度;到达高度后,由于是沿外围巡查并识别,应使用 Parallel 节点并设置 policy 为 success_on_one让基于航点队列的飞行fly_sequence与查找物体分支并行执行查找分支应循环或按序执行目标检测object_detect与条件判定object_detected发现后执行拍照take_photos。","parameter_requests":[{"node":"takeoff","intent":"起飞到12米","extracted_entities":{"altitude":"12米"}},{"node":"fly_sequence","intent":"沿面前大楼外围飞行","extracted_entities":{"landmark":"面前大楼外围"}},{"node":"object_detect","intent":"检测打开的窗户","extracted_entities":{"target":"打开的窗户"}},{"node":"object_detected","intent":"判定是否发现打开的窗户","extracted_entities":{"target":"打开的窗户"}},{"node":"take_photos","intent":"对打开的窗户拍照","extracted_entities":{"target":"打开的窗户"}}],"macro_tree":{"root":{"type":"Sequence","name":"Sequence","children":[{"type":"action","name":"system_checks"},{"type":"action","name":"takeoff"},{"type":"Parallel","name":"PatrolAndDetectWindows","children":[{"type":"action","name":"fly_sequence"},{"type":"decorator","name":"SuccessIsFailure","child":{"type":"Sequence","name":"DetectOpenWindowsWhileFlying","children":[{"type":"action","name":"object_detect"},{"type":"condition","name":"object_detected"},{"type":"action","name":"take_photos"}]}}]}]}}}
{"scene_id":"scene1_perimeter_person_air","intent_type":"patrol_or_monitor","trigger_terms":["这栋楼","空中","外围","人"],"text":"无人机已在空中先往上飞3米接着绕这栋楼外围侦察有没有人看到了就拍照传回来。","reasoning_path":"无人机已在空中禁止自检与起飞需先执行方向移动move_direction上升然后使用 Parallel 节点success_on_one让外围绕飞fly_sequence与识别人员分支并行执行识别分支需先检测物体object_detect满足检测条件object_detected后触发拍照take_photos。","parameter_requests":[{"node":"move_direction","intent":"往上飞3米","extracted_entities":{"direction":"上","distance":"3米"}},{"node":"fly_sequence","intent":"绕这栋楼外围飞行","extracted_entities":{"landmark":"这栋楼外围"}},{"node":"object_detect","intent":"检测人","extracted_entities":{"target":"人"}},{"node":"object_detected","intent":"判定是否发现人","extracted_entities":{"target":"人"}},{"node":"take_photos","intent":"对人拍照","extracted_entities":{"target":"人"}}],"macro_tree":{"root":{"type":"Sequence","name":"RiseAndDetectOpenWindows","children":[{"type":"action","name":"move_direction"},{"type":"Parallel","name":"PatrolAndDetectOpenWindows","children":[{"type":"action","name":"fly_sequence"},{"type":"decorator","name":"SuccessIsFailure","child":{"type":"Sequence","name":"DetectOpenWindowsWhileFlying","children":[{"type":"action","name":"object_detect"},{"type":"condition","name":"object_detected"},{"type":"action","name":"take_photos"}]}}]}]}}}
{"scene_id":"scene4_named_place_search_photo","intent_type":"search_and_photo","trigger_terms":["正大门","搜索","拍照"],"text":"无人机当前在地面,去研究所正大门,搜索扎辫子女子,找到后拍照。","reasoning_path":"无人机在地面需先自检并起飞到达指定目标点需使用坐标飞行fly_to_waypoint到达后因为不知道目标具体方位需旋转搜索rotate_search搜索过程可能有结果也可能无结果采用 Selector 节点进行判断优先分支检测目标object_detected并拍照take_photos若未检测到退至备选的悬停loiter动作。","parameter_requests":[{"node":"fly_to_waypoint","intent":"前往研究所正大门","extracted_entities":{"landmark":"研究所正大门"}},{"node":"rotate_search","intent":"搜索扎辫子女子","extracted_entities":{"target":"扎辫子女子"}},{"node":"object_detected","intent":"判定是否发现扎辫子女子","extracted_entities":{"target":"扎辫子女子"}},{"node":"take_photos","intent":"对扎辫子女子拍照","extracted_entities":{"target":"扎辫子女子"}}],"macro_tree":{"root":{"type":"Sequence","name":"MainSearchTask","children":[{"type":"action","name":"system_checks"},{"type":"action","name":"takeoff"},{"type":"action","name":"fly_to_waypoint"},{"type":"action","name":"rotate_search"},{"type":"Selector","name":"CheckAndPhoto","children":[{"type":"Sequence","name":"PhotoIfFound","children":[{"type":"condition","name":"object_detected"},{"type":"action","name":"take_photos"}]},{"type":"action","name":"loiter"}]}]}}}
{"scene_id":"scene4_named_place_monitor_return","intent_type":"return_or_land","trigger_terms":["广场西边","监控","返航"],"text":"无人机当前在空中往广场西边飞200米持续监控5分钟发现人就拍照告诉我到时间可以返航。","reasoning_path":"无人机在空中直接前往目标点fly_to_waypoint到达后需长期监控使用 Parallel 节点并设 policy 为 success_on_one。主控分支为时长控制的悬停loiter监控分支循环检测人object_detect检测到object_detected即拍照take_photos由于并行节点只要有一个完成loiter时间到便成功整个监控段结束后最后执行紧急返航return_emergency。","parameter_requests":[{"node":"fly_to_waypoint","intent":"去广场西边200米","extracted_entities":{"landmark":"广场","direction":"西边","distance":"200米"}},{"node":"loiter","intent":"持续监控5分钟","extracted_entities":{"time":"5分钟"}},{"node":"object_detect","intent":"检测人","extracted_entities":{"target":"人"}},{"node":"object_detected","intent":"判定是否发现人","extracted_entities":{"target":"人"}},{"node":"take_photos","intent":"对人拍照","extracted_entities":{"target":"人"}}],"macro_tree":{"root":{"type":"Sequence","name":"MainTask","children":[{"type":"action","name":"fly_to_waypoint"},{"type":"Parallel","name":"MonitorAndPhoto","children":[{"type":"action","name":"loiter"},{"type":"decorator","name":"SuccessIsFailure","child":{"type":"Sequence","name":"CheckAndPhoto","children":[{"type":"action","name":"object_detect"},{"type":"condition","name":"object_detected"},{"type":"action","name":"take_photos"}]}}]},{"type":"action","name":"return_emergency"}]}}}
{"scene_id":"scene4_named_place_confirm_then_action","intent_type":"search_and_photo","trigger_terms":["确认后","拍照","返航"],"text":"无人机当前在空中,搜索小汽车,搜索到了我确认后再决定要不要拍照。","reasoning_path":"无人机在空中直接开始任务。首先执行原地旋转搜索rotate_search紧接着使用条件节点确认是否检测到目标object_detected确认检测到后需插入人工确认交互节点manual_confirmation若人工放行最后执行拍照take_photos。","parameter_requests":[{"node":"rotate_search","intent":"搜索小汽车","extracted_entities":{"target":"小汽车"}},{"node":"object_detected","intent":"判定是否发现小汽车","extracted_entities":{"target":"小汽车"}},{"node":"take_photos","intent":"对小汽车拍照","extracted_entities":{"target":"小汽车"}}],"macro_tree":{"root":{"type":"Sequence","name":"SearchConfirmPhoto","children":[{"type":"action","name":"rotate_search"},{"type":"condition","name":"object_detected"},{"type":"action","name":"manual_confirmation"},{"type":"action","name":"take_photos"}]}}}
{"scene_id":"scene4_interruption_logic","intent_type":"generic_mission","trigger_terms":["如果途中","发现可疑人员","悬停"],"text":"无人机当前在地面飞往航点A。如果途中发现可疑人员则悬停。","reasoning_path":"无人机在地面需起飞。因为要在飞行途中中断,采用 Selector 控制。优先分支为检测异常包含主动检测object_detect、条件判定object_detected与发现后的悬停应对loiter。若优先分支未能连续达成即途中未发现目标Selector 退回备选分支正常向航点飞行fly_to_waypoint。","parameter_requests":[{"node":"object_detect","intent":"检测可疑人员","extracted_entities":{"target":"可疑人员"}},{"node":"object_detected","intent":"判定是否发现可疑人员","extracted_entities":{"target":"可疑人员"}},{"node":"fly_to_waypoint","intent":"飞往航点A","extracted_entities":{"landmark":"航点A"}}],"macro_tree":{"root":{"type":"Sequence","name":"Sequence","children":[{"type":"action","name":"system_checks"},{"type":"action","name":"takeoff"},{"type":"Selector","name":"FlyOrDetect","children":[{"type":"Sequence","name":"InterruptionLogic","children":[{"type":"action","name":"object_detect"},{"type":"condition","name":"object_detected"},{"type":"action","name":"loiter"}]},{"type":"action","name":"fly_to_waypoint"}]}]}}}