Problem with 2 webcams and stereo node: only 640x480? [closed]
Hi all, I'm trying to use 2 Logitech C270 HD webcams with the uvc_camera package and the stereo_node. The problem is that I can't get frames at a resolution higher than 640x480, even setting the frame rate to 1 fps.
Using only 1 webcam, I can grab video at 1280x720@10fps correctely.
This is my launch file with resolution set to 800x600:
<launch>
<node name="uvc_camera" pkg="uvc_camera" type="stereo_node">
<param name="left/device" value="/dev/video2" />
<param name="right/device" value="/dev/video1" />
<param name="fps" value="5" />
<param name="width" value="800" />
<param name="height" value="600" />
<param name="frame_id" value="central" />
</node>
<node name="image_view_left" pkg="image_view" type="image_view" respawn="false" output="screen">
<remap from="image" to="/left/image_raw"/>
<param name="autosize" value="true"/>
</node>
<node name="image_view_right" pkg="image_view" type="image_view" respawn="false" output="screen">
<remap from="image" to="/right/image_raw"/>
<param name="autosize" value="true"/>
</node>
</launch>
This is the error log:
[ INFO] [1334572095.032073676]: using default calibration URL
[ INFO] [1334572095.032166320]: camera calibration URL: file:///home/fabio/.ros/camera_info/camera.yaml
[ WARN] [1334572095.032275757]: Camera calibration file /home/fabio/.ros/camera_info/camera.yaml not found.
[ INFO] [1334572095.036218799]: using default calibration URL
[ INFO] [1334572095.036249086]: camera calibration URL: file:///home/fabio/.ros/camera_info/camera.yaml
[ WARN] [1334572095.036323367]: Camera calibration file /home/fabio/.ros/camera_info/camera.yaml not found.
opening /dev/video2
pixfmt 0 = 'YUYV' desc = 'YUV 4:2:2 (YUYV)'
discrete: 640x480: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 160x120: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 176x144: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 320x176: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 320x240: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 352x288: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 432x240: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 544x288: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 640x360: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 752x416: 1/25 1/20 1/15 1/10 1/5
discrete: 800x448: 1/25 1/20 1/15 1/10 1/5
discrete: 800x600: 1/20 1/15 1/10 1/5
discrete: 864x480: 1/20 1/15 1/10 1/5
discrete: 960x544: 1/15 1/10 1/5
discrete: 960x720: 1/10 1/5
discrete: 1024x576: 1/10 1/5
discrete: 1184x656: 1/10 1/5
discrete: 1280x720: 1/10 1/5
discrete: 1280x960: 2/15 1/5
pixfmt 1 = 'MJPG' desc = 'MJPEG'
discrete: 640x480: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 160x120: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 176x144: 1/30 1/25 1/20 1/15 1/10 1/5
discrete: 320x176: 1/30 1/25 ...