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

catkin_make image_view failed,cvtColorForDisplay’ is not a member of ‘cv_bridge’

asked 2015-12-30 06:47:42 -0600

baogege gravatar image

updated 2016-01-05 20:44:11 -0600

Hello,I am using Indigo(Ubuntu14.04) When I git clone from here then,I run:catkin_make,Error occurred as below:

/home/exbot/catkin_ws/src/image_pipeline/image_view/src/nodes/image_view.cpp: In function ‘void imageCb(const ImageConstPtr&)’:
/home/exbot/catkin_ws/src/image_pipeline/image_view/src/nodes/image_view.cpp:59:20: error: ‘cvtColorForDisplay’ is not a member of ‘cv_bridge’
     g_last_image = cv_bridge::cvtColorForDisplay(cv_bridge::toCvShare(msg), "",
                    ^
/home/exbot/catkin_ws/src/image_pipeline/image_view/src/nodelets/image_nodelet.cpp: In member function ‘void image_view::ImageNodelet::imageCb(const ImageConstPtr&)’:
/home/exbot/catkin_ws/src/image_pipeline/image_view/src/nodelets/image_nodelet.cpp:165:87: error: ‘cvtColorForDisplay’ was not declared in this scope
     last_image_ = cvtColorForDisplay(cv_bridge::toCvShare(msg), "", do_dynamic_scaling)->image;

please help me,thx

edit retag flag offensive close merge delete

Comments

Same problem here, I'm using ROS hydro, did you figure this out ?

yizheng gravatar image yizheng  ( 2016-01-04 17:59:02 -0600 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2016-01-04 18:20:04 -0600

yizheng gravatar image

updated 2016-01-04 18:20:36 -0600

Hi, I find a workaround on this page(http://wiki.ros.org/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages)

edit flag offensive delete link more
0

answered 2016-02-23 21:52:14 -0600

jayson gravatar image

I have the same issue. I think this is because your cv_bridge is not up to date.
You can download vision_opencv (1.11.11 version) and compile it from the source. You might also need compile common_msgs from source since the image_pipeline package called sensor_msgs/point_cloud2_iterator.h which is not exist in ros-hydro-sensor-msgs/include. After add those two package in catkin src folder and compile them against image_pipeline. I am able to compile this package. Hope this helps.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-12-30 06:47:42 -0600

Seen: 857 times

Last updated: Jan 05 '16