catkin_make image_view failed,cvtColorForDisplay’ is not a member of ‘cv_bridge’
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
Same problem here, I'm using ROS hydro, did you figure this out ?