当前位置:网站首页>cv_bridge 与opencv 版本不匹配的解决
cv_bridge 与opencv 版本不匹配的解决
2022-04-23 05:50:00 【ppipp1109】
问题描述:
ubuntu18.04安装的ros 默认的opencv版本和cv_bridge 版本为3.2.0 但是在使用其他程序包的时候有时候需要用到其他版本的opencv。再调用cv_bridge的时候会发生调用冲突;
解决:
1. 卸载原来的 cv-bridge
sudo apt-get remove ros-melodic-cv-bridge
2. 下载新版本cv_bridge
GitHub - ros-perception/vision_opencvhttps://github.com/ros-perception/vision_opencv选择melodic对应的cv_bridge
3.修改cv_bridge中的cmakelists.txt
find_package(OpenCV 3.4.10 REQUIRED) //改成你安装的opencv的版本
4.cmake单独编译cv_bridge
在cv_bridge文件夹下,
mkdir build
cd build
cmake ..
make
sudo make install
5.在开源代码需要的cmaklist.txt中添加cv_bridge的cmake路径
set(cv_bridge_DIR /usr/local/share/cv_bridge/cmake) //在find_package前面
有问题可以留言。
参考链接:
版权声明
本文为[ppipp1109]所创,转载请带上原文链接,感谢
https://ppipp.blog.csdn.net/article/details/122860971
边栏推荐
猜你喜欢
【UDS统一诊断服务】四、诊断典型服务(6)— 输入输出控制单元(0x2F)
基于SSD的物体检测案例实现
[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)
Graduation project, viewing screenshots of epidemic psychological counseling system
Opencv uses genericindex for KNN search
进程管理命令
【UDS统一诊断服务】二、网络层协议(2)— 数据传输规则(单帧与多帧)
OpenCV使用 GenericIndex 进行 KNN 搜索
Robocode教程7——雷达锁定
Completely clean up MySQL win
随机推荐
C语言数组处理批量数据
带默认模板实参的类模板与模板模板形参的匹配
C#【文件操作篇】PDF文件和图片互相转换
搭建jpress个人博客
基于VGG对五种类别图片的迁移学习
【UDS统一诊断服务】四、诊断典型服务(4)— 在线编程功能单元(0x34-0x38)
MySQL groups are sorted by a field, and the first value is taken
Graduation project, curriculum link, student achievement evaluation system
【OpenCV】使用 FileStorage 读写 Eigen 向量
Feign请求日志统一打印
Class inheritance and derivation
pyppeteer爬虫
用C语言实现重写strcmp等四个函数
A solution to replace not in in SQL
Static member
[UDS unified diagnostic service] IV. typical diagnostic service (2) - data transmission function unit
CUDA环境安装
[UDS unified diagnosis service] i. diagnosis overview (3) - ISO 15765 architecture
C [document operation] PDF files and pictures are converted to each other
Robocode教程5——Enemy类