image_view doesn't show anything

asked 2015-05-04 10:13:45 -0600

erikb gravatar image

updated 2015-05-05 08:36:56 -0600

Hi,

I am trying to show images from a webcamera using

rosrun image_view image_view image:=/usb_cam/image_raw.

The problem is that nothing happens when I type that command in a console.

I have checked with

rostopic hz /usb_cam/image_raw

and it is publishing images with approximately 30 Hz.

I can also use

rviz

and add the topic

/usb_cam/image_raw

and there it works just fine, so why doesn't

rosrun image_view image_view image:=/usb_cam/image_raw?

I have Linux Mint 17 distro with ROS Indigo.

/ Erik

edit retag flag offensive close merge delete

Comments

Is the topic published with image_transport?

dornhege gravatar image dornhege  ( 2015-05-04 10:43:52 -0600 )edit

I am a rookie with ROS so I don't know. I run roslaunch usb_cam.launch and then the image_view commands above. I found the launch code here: http://www.iheartrobotics.com/2010/05...

erikb gravatar image erikb  ( 2015-05-04 11:02:02 -0600 )edit

Also facing same problem while trying this tutorial. In my case RViz camera returns a dark screen, it states the topic is ok.

専門家 gravatar image 専門家  ( 2023-08-02 11:43:48 -0600 )edit