ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

usb_cam don't work,can'tsee any image

asked 2012-11-25 02:56:41 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

when I use usb_cam, I did this: roscore and rosrun usb_cam usb_cam_node. I also used rosparam set usb_cam/pixel_format yuyv and I received:

           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]
          1 frames/sec at 1353855178.185472348
          1 frames/sec at 1353855178.314173063
          4 frames/sec at 1353855178.849589157
          7 frames/sec at 1353855179.782349046

but I can't see image on my screen,and roswtf showed that :

Loaded plugin tf.tfwtf
No package or stack in context
================================================================================
Static checks summary:
No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take awhile...
analyzing graph...
... done analyzing graph
running graph rules...
... done running graph rules

Online checks summary:

Found 3 error(s).

ERROR Communication with [/rosout] raised an error: 
ERROR Communication with [/usb_cam] raised an error: 
ERROR The following nodes should be connected but aren't:
 * /usb_cam->/rosout (/rosout)

I am new to ROS. Please help me! Thank a lot!

edit retag flag offensive close merge delete

Comments

What command are you using to display the images? What does rostopic list show?

joq gravatar imagejoq ( 2012-11-26 04:54:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-11-27 04:30:16 -0500

BeLioN gravatar image

For webcams, I recommend you to use gscam instead of usb_cam

http://www.ros.org/wiki/gscam

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-11-25 02:56:41 -0500

Seen: 214 times

Last updated: Nov 27 '12