Skip to content

Match tasks

Orchestrator, person, mine, and anti-tank detection, the gimbal service, and the 6-line report.

Most of this code is in the raicom2026 package. Repository

Task service flow

Orchestrator nav_competition

ItemNotes
Confignav_competition.yaml
go launchmatch_go.launch
Task typesperson (A–D), mine (A/B), antitank
ServiceNode
/person_detect_servicewebcam_person_gun.py
/mine_detect_serviceorbbec_mine_antitank.py
/antitank_check_serviceorbbec_mine_antitank.py

Gimbal service gimbal_server

  • Exclusive owner of /dev/gun
  • /gun/aim, /gun/fire, /gun/home
  • People and mines share the gimbal

People and shooting

webcam_person_gun.py

ItemNotes
Camera/usb_cam/image_raw (848×480 MJPG)
Modelperson.onnx
FlowScan and count → exact report string → aim and fire at the enemy

Shooting and recognition live in the same node. The node does not write the serial port itself.

Mines

The mine half of orbbec_mine_antitank.py:

ItemNotes
CameraGimbal webcam
GimbalA (70,70), B (175,70)
Modelmine.onnx
Report"A雷区未排雷数量x个,已经排雷数量x个" (ASCII comma)

Anti-tank avoidance

The antitank half of the same script, plus move_base:

ItemNotes
CameraOrbbec color and depth
TriggerP21 /antitank_check_service
Output/visual_mine/obstacles → local costmap

Report

report.py and assemble_report.py produce a report.txt of exactly 6 lines.

Two cameras