ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

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

stevemartin gravatar image

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

gvdhoorn gravatar image

I am running an ORB SLAM 2 package and one of the files called Tracking.cc 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

Comments

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

KenYN gravatar image KenYN  ( 2019-02-15 01:41:51 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Question Tools

1 follower

Stats

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

Seen: 3,841 times

Last updated: Feb 15 '19