无人机拦截

配置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模型替换为无人机模型

相关推荐
ι:1 天前
MATLAB 与 Python 搭建无人机地面站:优势、劣势与选型逻辑
python·matlab·无人机
应用市场1 天前
无人机视觉自主吊装:可行性分析与实现方案
无人机
fl1768311 天前
无人机视角低空拍摄的土豆马铃薯幼苗与杂草检测数据集VOC+YOLO格式5266张6类
yolo·无人机
_白格2 天前
无人机与反制
无人机
LONGZETECH3 天前
无人机实训高成本痛点解法:虚拟仿真实现 70% 耗材损耗下降
大数据·算法·unity·架构·无人机
动物园猫5 天前
无人机灾害场景人体目标检测数据集:10,000张图像 | 目标检测
人工智能·目标检测·无人机
tianxuanjg6 天前
高精密CNC 加工厂家该如何挑选
经验分享·机器人·无人机·材质
mtouch3336 天前
全球水面海面动态仿真规划生成数字沙盘电子沙盘系统
人工智能·机器人·无人机·虚拟现实·电子沙盘·数字沙盘
GrepowTattu7 天前
新品发布 | Tattu TA75八通道智能充电器,让无人机训练补能更高效
无人机
专业工业电源打工人7 天前
无人机硬件设计:工业模块电源选型的三个核心要点|电子工程师实操指南
无人机·国产化·工业电源