On Thu, May 19, 2011 at 10:28 AM, olohmann <span dir="ltr"><<a href="mailto:olohmann@offis.de">olohmann@offis.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Sorry for the late response,<br>
<div class="im"><br>
> make sure your camera is available to the system as /dev/video1 (as<br>
> you specified in the launchfile).<br>
<br>
</div>/dev/video1 is correct in the launch-file.<br>
<br>
I am trying to calibrate multiple cameras according to<br>
<a href="http://www.ros.org/wiki/camera_pose_calibration" target="_blank">http://www.ros.org/wiki/camera_pose_calibration</a> the first<br>
camera /dev/video0 is the build in webcam of the laptop and /dev/video1<br>
is the philips webcam.<br>
<div class="im"><br>
<br>
> Usually, eg. if that's the only<br>
> camera you're using, this will be /dev/video0 rather (check what<br>
> ls /dev/video* returns). I guess you already tried if your camera<br>
> works with your system eg. using<br>
> guvcview -d /dev/video0 .<br>
<br>
</div>Both cameras are working with guvcview.<br></blockquote><div><br></div><div>Okko,</div><div><br></div><div>Could you confirm that the Philips camera only supports either RAW or YUV 4:2:0? The current uvc_cam-based drivers in ROS only support RGB, YUYV or MJPEG (at least last time I checked). You can find a comparison of the USB drivers available here: <a href="http://answers.ros.org/question/57/what-driver-should-i-use-for-my-usb-camera">http://answers.ros.org/question/57/what-driver-should-i-use-for-my-usb-camera</a> . You could give gscam or gencam_cu . There is also usb_cam, but that may not support YUV 4:2:0 either.</div>
<div><br></div><div>- Eric</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
> Also, always check <a href="http://answers.ros.org" target="_blank">answers.ros.org</a> for existing answers to your<br>
> problem and post your questions there.<br>
<br>
> Regards,<br>
> Tom<br>
><br>
> W dniu 17.05.2011 10:19, Okko Lohmann pisze:<br>
> > Hello,<br>
> ><br>
> > I am trying to get the  uvc_camera-node (ubuntu 10.10, package<br>
> > ros-diamondback-camera-umd)  to work with my "Philips SPC 900NC PC<br>
> > Camera" usb-webcam, but the node exits with the following error:<br>
> ><br>
> > pixfmt 0 = 'PWC2' desc = 'Raw Philips Webcam'<br>
> >    discrete: 640x480:<br>
> > pixfmt 1 = 'YU12' desc = '4:2:0, planar, Y-Cb-Cr'<br>
> >    discrete: 160x120:   1/5 1/10 1/15 1/20 1/25 1/30<br>
> >    discrete: 320x240:   1/5 1/10 1/15 1/20 1/25 1/30<br>
> >    discrete: 640x480:   1/5 1/10 1/15<br>
> > terminate called after throwing an instance of 'std::runtime_error'<br>
> >    what():  couldn't set format<br>
> > [uvc_camera-1] process has died [pid 11142, exit code -6].<br>
> > log files:<br>
> > ~/log/97474b26-8052-11e0-9f91-002326f94616/uvc_camera-1*.log all<br>
> > processes on machine have died, roslaunch will exit shutting down<br>
> > processing monitor... ... shutting down processing monitor complete<br>
> ><br>
> > I am using the launch-file:<br>
> ><br>
> > <launch><br>
> > <node pkg="uvc_camera" type="camera_node" name="uvc_camera"<br>
> > output="screen"> <param name="device" type="string"<br>
> > value="/dev/video1" /> <param name="width" type="int" value="640" /><br>
> > <param name="height" type="int" value="480" /><br>
> > </node><br>
> > </launch><br>
> ><br>
> > the philips webcam is working with mplayer and the build in laptop<br>
> > camera is working with the uvc_camera-node.<br>
> ><br>
> > O.Lo<br>
> > _______________________________________________<br>
> > ros-users mailing list<br>
> > <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> > <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>