image_transport can't see the webcam image

asked 2016-04-26 08:09:51 -0500

Joy.Lin gravatar image

updated 2016-04-26 08:18:06 -0500

Hi,everyone. I try to do the image_transport tutorial link text. It catkin_make successfully ,but I can't see the webcam image from subscriber_node(it showed up the empty frame).
[use 14.04 ubuntu indigo cv_bridge is include opencv2]

this is my CMakeList:

cmake_minimum_required(VERSION 2.8.3) project(image_test) find_package(catkin REQUIRED COMPONENTS cv_bridge genmsg image_transport roscpp sensor_msgs std_msgs )

include_directories( ${catkin_INCLUDE_DIRS} )

include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(my_publisher src/my_publisher.cpp) target_link_libraries(my_publisher ${catkin_LIBRARIES}) add_dependencies(my_publisher image_test_generate_messages_cpp) add_executable(my_subscriber src/my_subscriber.cpp) target_link_libraries(my_subscriber ${catkin_LIBRARIES}) add_dependencies(my_subscriber image_test_generate_messages_cpp)

edit retag flag offensive close merge delete