ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The default parameters for usb_cam are unlikely to work, you'll need to discover them and then have a rosrun like:
rosrun usb_cam usb_cam_node _image_width:=1280 _image_height:=720 _framerate:=15 _video_device:=/dev/video0 _pixel_format:=mjpeg
You can use guvcview to determine working resolutions and formats, or a command line like
v4l2-ctl --device=0 --list-formats-ext
I've written this up here (and a lot of other related ros webcam tips): https://gist.github.com/lucasw/85dc92c9f5146e9d5175a33b49ef4a90