无人机拦截

配置yolo

CUDA报错

bash 复制代码
`nvcc fatal : Unsupported gpu architecture 'compute_30'.`

(1)查看显卡匹配型号:https://blog.csdn.net/u013308762/article/details/121658823

(2)查看显卡:nvidia-smi -a

==》NVIDIA GeForce GTX 1070匹配ARCH= -gencode arch=compute_61,code=sm_61

因此,修改darknet_ros/CMakeLists.txt的文件,将多余compute版本注释掉

bash 复制代码
    ${CUDA_NVCC_FLAGS};
    -O3
    #-gencode arch=compute_30,code=sm_30
    #-gencode arch=compute_35,code=sm_35
    #-gencode arch=compute_50,code=[sm_50,compute_50]
    #-gencode arch=compute_52,code=[sm_52,compute_52]
    -gencode arch=compute_61,code=sm_61
    #-gencode arch=compute_62,code=sm_62

OPENCV报错

bash 复制代码
/usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name 'namespace'
 namespace cv {
 ^~~~~~~~~

修改如下https://zhuanlan.zhihu.com/p/36933700

更改无人机模型和视觉输入

(1)修改task1.launch

bash 复制代码
  <arg name="image" default="/iris_0/stereo_camera/left/image_raw" />

(2)修改uav0.yaml

bash 复制代码
  camera_reading:
    topic: /iris_0/stereo_camera/left/image_raw

运行

c 复制代码
roslaunch px4 multi_vehicle.launch
bash 复制代码
roslaunch darknet_ros task1.launch
bash 复制代码
cd ~/XTDrone/communication
python multirotor_communication.py iris 0
bash 复制代码
cd ~/catkin_ws_intercept/src/intercept/scripts
python hover.py iris 1 vel
bash 复制代码
cd ~/catkin_ws_intercept/src/intercept/scripts
python yolo_human_intercept.py iris 0

做无人机速度控制时,摄像机方向(前方)为x轴正方向,左为y轴正方向

将yolo模型替换为无人机模型

相关推荐
hao_wujing4 小时前
一种改进的YOLOv11网络,用于无人机视角下的小目标检测
yolo·目标检测·无人机
moonsims8 小时前
SPH Engineering - 无人机技术开发专家
无人机
nuannuan2311a8 小时前
BT131-ASEMI无人机专用功率器件BT131
无人机
CoovallyAIHub16 小时前
复杂背景下无人机影像小目标检测:MPE-YOLO抗遮挡与抗背景干扰设计
算法·计算机视觉·无人机
睿途低空新程20 小时前
面向城市治理的AI集群空域融合模型
人工智能·经验分享·其他·无人机
AI的魔盒1 天前
基于Java与MAVLink协议的多无人机(Cube飞控)集群控制与调度方案问题
java·开发语言·无人机
电鱼智能的电小鱼2 天前
基于 EFISH-SBC-RK3588 的无人机智能巡检终端方案‌
无人机
UAV_ckesc3 天前
无人机动力核心测评:CKESC STONE 180A-M 电调
无人机·多旋翼无人机·无人机电调·无人机动力·垂起无人机
电鱼智能的电小鱼3 天前
EFISH-SBC-RK3588无人机地面基准站项目
linux·网络·嵌入式硬件·机器人·无人机·边缘计算
nuannuan2311a3 天前
12N60-ASEMI无人机专用功率器件12N60
无人机