Image transport tutorial does not work properly

asked 2015-10-16 06:19:32 -0500

karthik_puzzle gravatar image

Hello Everyone,

I have been trying to execute the tutorials given in image_transport tutorial.

I finished the my_publisher.cpp and tried to run using

  rosrun image_transport_tutorial my_publisher ImagePath.jpg

I got no errors and the cursor was in standstill.

The following command

  rostopic list

showed the topics as followsimage description

  /SourceImage
  /SourceImage/compressed
  /SourceImage/compressed/parameter_descriptions
  /SourceImage/compressed/parameter_updates
  /SourceImage/compressedDepth
  /SourceImage/compressedDepth/parameter_descriptions
  /SourceImage/compressedDepth/parameter_updates
  /SourceImage/theora
  /SourceImage/theora/parameter_descriptions
  /SourceImage/theora/parameter_updates
  /rosout
  /rosout_agg

According to the tutorial, I should only get

  /SourceImage [sensor_msgs/Image] - 1 Publisher

I don't know why I didn't get it right.

When I tried to run the my_subscriber.cpp, it threw me the following error

  OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow ......

Anyone having any suggestions to overcome this problem ?

edit retag flag offensive close merge delete

Comments

even im getting the same issue, notify me if you got it please

kevadoodle gravatar image kevadoodle  ( 2018-02-13 02:31:26 -0500 )edit