Could not find a package configuration file provided by "cv_bridge"

问题描述:Could not find a package configuration file provided by "cv_bridge" with
  any of the following names:

    cv_bridgeConfig.cmake

    cv_bridge-config.cmake

解决方法:

1、下载vision_opencv包:

    $ git clone [email protected]:ros-perception/vision_opencv.git

2、编译vision_opencv:

$ cd vision_opencv/cv_bridge

$ sudo mkdir build

$ cd build

$ cmake ..

$ make & make install

3、修改ros安装目录下的catkinConfig.cmake文件
   

$ sudo vim /path/to/ros/kinetic/share/catkin/cmake/catkinConfig.cmake    

    在 find_package(${component} REQUIRED NO_MODULE PATHS ${paths} 之前加入

find_package(${component} REQUIRED NO_MODULE PATHS ${paths}

大功告成!Good luck!

你可能感兴趣的:(OpenCV)