'cvtColorForDisplay' is not a member of 'cv_bridge'

asked 2016-05-31 10:15:14 -0500

Master.L gravatar image

few week before i can catkin_make the my Work_space

but now i can't catkin_make

error is

/home/odroid/image_transport_ws/src/image_transport_tutorial/src/my_subscriber_uvc.cpp: In function 'void imageCallback(const ImageConstPtr&)': /home/odroid/image_transport_ws/src/image_transport_tutorial/src/my_subscriber_uvc.cpp:92:7: error: 'cvtColorForDisplay' is not a member of 'cv_bridge' img= cv_bridge::cvtColorForDisplay(cv_bridge::toCvShare(msg), "", ^ make[2]: * [image_transport_tutorial/CMakeFiles/my_subscriber_uvc.dir/src/my_subscriber_uvc.cpp.o] Error 1 make[1]: [image_transport_tutorial/CMakeFiles/my_subscriber_uvc.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... /home/odroid/image_transport_ws/src/image_transport_tutorial/src/my_subscriber.cpp: In function 'void rgbCallback(const ImageConstPtr&)': /home/odroid/image_transport_ws/src/image_transport_tutorial/src/my_subscriber.cpp:112:21: error: 'cvtColorForDisplay' is not a member of 'cv_bridge' g_last_image = cv_bridge::cvtColorForDisplay(cv_bridge::toCvShare(msg), "", ^ make[2]: [image_transport_tutorial/CMakeFiles/my_subscriber.dir/src/my_subscriber.cpp.o] Error 1 make[1]: [image_transport_tutorial/CMakeFiles/my_subscriber.dir/all] Error 2 make: * [all] Error 2

Why is suddenly not?

please help me

edit retag flag offensive close merge delete