跳转到主要内容

比赛任务

主调度、人物/雷区/反坦克检测、云台服务与 6 行报告。

代码主要在 raicom2026 包。仓库

任务 Service 流

主调度 nav_competition

说明
配置nav_competition.yaml
go 启动match_go.launch
任务类型person(A–D)、mine(A/B)、antitank
Service执行节点
/person_detect_servicewebcam_person_gun.py
/mine_detect_serviceorbbec_mine_antitank.py
/antitank_check_serviceorbbec_mine_antitank.py

云台服务 gimbal_server

  • 独占 /dev/gun
  • /gun/aim/gun/fire/gun/home
  • 人物与雷区共用云台

人物识别与打靶

webcam_person_gun.py

说明
相机/usb_cam/image_raw(848×480 MJPG)
模型person.onnx
流程扫描计数 → 精确报告串 → 对 enemy 瞄准开火

打靶与识别在同一节点,不直写串口。

雷区识别

orbbec_mine_antitank.py 的 mine 部分:

说明
相机云台 webcam
云台A (70,70)、B (175,70)
模型mine.onnx
报告"A雷区未排雷数量x个,已经排雷数量x个"(半角逗号)

反坦克与避障

同一脚本的 antitank 部分 + move_base:

说明
相机Orbbec color + depth
触发P21 /antitank_check_service
输出/visual_mine/obstacles → local costmap

报告输出

report.py + assemble_report.py → 恰好 6 行 report.txt

双相机