Robotics StackExchange | Archived questions

image_view doesn't show anything

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

Asked by erikb on 2015-05-04 10:13:45 UTC

Comments

Is the topic published with image_transport?

Asked by dornhege on 2015-05-04 10:43:52 UTC

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/vision-for-robots-1-of-n-setup.html

Asked by erikb on 2015-05-04 11:02:02 UTC

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

Asked by 専門家 on 2023-08-02 11:43:48 UTC

Answers