feat: add Prometheus/P600 integration, simulation scripts, README MAVSDK flight controller adapter with offboard control Prometheus MAVROS bridge for topic translation PX4 SITL configuration for P600 simulation Simulation setup script (clone Prometheus, build PX4) Real drone deployment script Complete README with quickstart guide
feat: add Prometheus/P600 integration, simulation scripts, README
基于阿木实验室 P600 无人机的飞行物实时检测、跟踪、预测与拦截系统。
相机 → YOLO检测 → ByteTrack跟踪 → 轨迹记录/预测 → 意图分析 → 拦截规划 ↓ ↓ 安全保护(监控) 飞行控制 → PX4 ↓ FastAPI Gateway → React + Cesium (地面站) FastAPI Gateway → QGroundControl (MAVLink共享)
D:\UAV-Interceptor\ ├── src/ │ ├── ros2/uav_interceptor/ # 7个ROS2节点 │ │ ├── detection_node.py # YOLO飞行物检测 │ │ ├── tracking_node.py # ByteTrack多目标跟踪 │ │ ├── trajectory_node.py # 3D轨迹记录+EKF预测 │ │ ├── intent_node.py # 飞行意图语义分析 │ │ ├── intercept_node.py # RRT*+APF拦截规划 │ │ ├── control_node.py # 飞行状态机控制 │ │ ├── safety_node.py # 多重安全保护 │ │ └── adapters/ # Prometheus/MAVSDK适配器 │ ├── gateway/ # FastAPI网关 │ └── frontend/ # React+Cesium地面站 ├── config/ # 配置文件 ├── simulation/ # 仿真环境配置 ├── tests/ # 单元测试(7个) └── scripts/ # 启动/部署脚本
# 安装依赖 pip install -r requirements.txt # 启动网关(仿真模式,无需PX4) python scripts/start_gateway.py --simulate # 另一个终端启动前端 cd src/frontend npm install npm run dev
访问 http://localhost:3000 打开地面站。
# 搭建仿真环境 cd simulation chmod +x setup_simulation.sh ./setup_simulation.sh # 启动PX4 SITL + Gazebo + MAVROS ./start_sim.sh # 另一个终端启动拦截系统 source /opt/ros/humble/setup.bash ros2 launch uav_interceptor interceptor.launch.py # 启动地面站网关 python scripts/start_gateway.py --mavlink "udp://:14540"
QGroundControl 连接 UDP 端口 14550 即可同时查看飞控数据。
# 部署到机载电脑 ./scripts/deploy_to_drone.sh 192.168.1.100 "serial:///dev/ttyUSB0:921600"
python tests/test_detection.py # 检测模块 python tests/test_tracking.py # 跟踪模块 python tests/test_trajectory.py # 轨迹模块 python tests/test_intent.py # 意图分析 python tests/test_intercept.py # 拦截规划 python tests/test_safety.py # 安全保护 python tests/test_control.py # 飞行控制
系统通过 MAVLink UDP 多播实现 QGC 集成:
PX4 (UDP:14540) ├─► QGroundControl (UDP:14550) — 独立运行 └─► FastAPI Gateway (UDP:14540 + WebSocket) └─► React前端 — 地图+视频+控制
追猎 - UAV Interceptor System
基于阿木实验室 P600 无人机的飞行物实时检测、跟踪、预测与拦截系统。
系统架构
技术栈
项目结构
快速开始
1. 仿真模式(Windows/Ubuntu)
访问 http://localhost:3000 打开地面站。
2. Prometheus仿真(Ubuntu + ROS2)
QGroundControl 连接 UDP 端口 14550 即可同时查看飞控数据。
3. 真机部署(P600)
4. 运行测试
QGroundControl集成
系统通过 MAVLink UDP 多播实现 QGC 集成:
功能模块
开源参考