I have ROS Indigo on Ubuntu Trusty, and I'm following along with this tutorial http://wiki.ros.org/image_transport/Tutorials/PublishingImages. However, if I go along with the code exactly, catkin_make tells me that cv_bridge/CvBridge.h doesn't exist. If I replace CvBridge with cv_bridge, it has no problem finding the header file, but I get a problem with the following line:
sensor_msgs::ImagePtr msg = sensor_msgs::cv_bridge::cvToImgMsg(image.Ipl(), "bgr8");
The message I get is "error: ‘sensor_msgs::cv_bridge’ has not been declared". Is CvBridge.h deprecated as of Indigo? If so, how do I accomplish what cvToImgMsg is supposed to do?
Originally posted by K. Zeng on ROS Answers with karma: 23 on 2014-10-08
Post score: 0