ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How can I see images from usb_cam ?

asked 2014-02-19 09:08:27 -0500

4LV4R0 gravatar image

updated 2014-02-19 09:40:56 -0500

Good afternoon.

I have usb_camera installed on my groovy raspbian. I have done : rosparam set usb_cam/pixel_format yuyv and after that I wrote : rosrun usb_cam usb_cam_node

I´m being given :

usb_cam video_device set to [/dev/video0]

       usb_cam io_method set to [mmap]

       usb_cam image_width set to [640]

       usb_cam image_height set to [480]

       usb_cam pixel_format set to [yuyv]

       usb_cam auto_focus set to [0]

      10 frames/sec at 1353855178.185472348

      10 frames/sec at 1353855178.314173063

      9 frames/sec at 1353855178.849589157

      10 frames/sec at 1353855179.782349046


My rostopic list is the next :













What´s the next I have to do to be able to see captured images?

Thanks you so much

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-02-19 09:58:35 -0500

davinci gravatar image

If you have a screen connected (and graphical interface) it is easy:

rosrun image_view image_view image:=/usb_cam/image_raw

Otherwise you have to have to look at the multiple machines page:

edit flag offensive delete link more


Thanks for your answer. I´m getting a poor frame rate this time I don´t know why : only 1 or 2 frames/sec. I did it but with this message Xlib: extension "RANDR" missing on display 10.1" What does it mean? Here is the result :

4LV4R0 gravatar image 4LV4R0  ( 2014-02-19 10:57:24 -0500 )edit

@4LV4R0 It should be a problem of Raspberry Pi instead of ROS. check this:

lanyusea gravatar image lanyusea  ( 2014-02-19 13:44:16 -0500 )edit

I was using xdrp with a remote desktop on windows. I think the missing message was because it. I get 15, 16 frames/sec but I can´t see the image correctly. Can it be because of the pixel_format wich may could not be supported? With mjpeg it´s horrible: only a few frames, not continous, black screen

4LV4R0 gravatar image 4LV4R0  ( 2014-02-19 22:20:07 -0500 )edit

Question Tools

1 follower


Asked: 2014-02-19 09:08:27 -0500

Seen: 2,837 times

Last updated: Feb 19 '14