Ask Your Question

fatal error: cv_bridge/cv_bridge.h: No such file or directory

asked 2018-11-09 05:45:33 -0600

stevemartin gravatar image

updated 2018-11-09 06:54:26 -0600

gvdhoorn gravatar image

I am running an ORB SLAM 2 package and one of the files called includes <cv_bridge/cv_bridge.h> and the compiler says

fatal error: cv_bridge/cv_bridge.h: No such file or directory

This is strange because cv_bridge is indeed installed in my system, as when I try to run sudo apt-get install ros-kinetic-cv-bridge it says that the package has been installed already.

What can be the problem?

edit retag flag offensive close merge delete


Is the package referenced in your CMakeLists.txtfind_package(catkin COMPONENTS) and catkin_package(CATKIN_DEPENDS)?

KenYN gravatar imageKenYN ( 2019-02-15 01:41:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-02-15 00:03:51 -0600

selcuk yolcu gravatar image

sudo apt-get install ros-kinetic-cv-bridge

this command solved error in my system

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-11-09 05:45:33 -0600

Seen: 588 times

Last updated: Feb 15 '19