Ask Your Question

Running ros image to cv image conversion node

asked 2016-08-05 11:14:37 -0500

skr_robo gravatar image

I am trying the example node given here to convert ros images into opencv images. When I run the node I don't see anything on the screen. My Opencv version is 2.4.8 and am using Indigo on Ubuntu 14.04. Below is my CMakeLists.txt:

cmake_minimum_required(VERSION 2.8.3)

find_package(catkin REQUIRED COMPONENTS


find_package(OpenCV REQUIRED)


add_executable(roscv_conv_node src/roscv_conv_node.cpp)


add_dependencies(roscv_conv_node sensor_msgs_generate_messages_cpp std_msgs_generate_messages_cpp)

Do I need to add anything to my CMakeLists.txt or is it because I need to install any additional drivers or a different version of opencv? I run the node and the cursor keeps blinking on the screen and doesn't display anything else. What am I missing here?

edit retag flag offensive close merge delete



Are you running another ROS node that is publishing images?

ahendrix gravatar image ahendrix  ( 2016-08-05 12:15:55 -0500 )edit

I don't think so. I have installed libuvc camera driver and am trying to figure out how to get it published.

skr_robo gravatar image skr_robo  ( 2016-08-05 12:43:51 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-05 13:17:35 -0500

skr_robo gravatar image

updated 2016-08-05 13:19:57 -0500

I have realized that the problem was the absence of any nodes publishing images (I know, it's silly). I have got this working with the topic /camera/rgb/image_rect_color, using zed camera and its ros wrapper. Thank you ahendrix.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-08-05 11:14:37 -0500

Seen: 89 times

Last updated: Aug 05 '16