Does the gscam solve your problem?
Otherwise, you're not setting the fps in your launchfile, maybe the
default value isn't supported by your camera. It's just a blind shot but
there is a chance you haven't tried that, so try something like:
Regards,
Tom
> On Fri, 20 May 2011 10:13:23 +0200
> olohmann wrote:
>
>>>>> make sure your camera is available to the system as /dev/video1
>>>>> (as you specified in the launchfile).
>>>> /dev/video1 is correct in the launch-file.
>>>>
>>>> I am trying to calibrate multiple cameras according to
>>>> http://www.ros.org/wiki/camera_pose_calibration the first
>>>> camera /dev/video0 is the build in webcam of the laptop
>>>> and /dev/video1 is the philips webcam.
>>>>
>>>>
>>>>> Usually, eg. if that's the only
>>>>> camera you're using, this will be /dev/video0 rather (check what
>>>>> ls /dev/video* returns). I guess you already tried if your
>>>>> camera works with your system eg. using
>>>>> guvcview -d /dev/video0 .
>>>> Both cameras are working with guvcview.
>>> 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:
>>> http://answers.ros.org/question/57/what-driver-should-i-use-for-my-usb-camera .
>>> You could give gscam or gencam_cu . There is also usb_cam, but that
>>> may not support YUV 4:2:0 either.
>> According to the specs the data format of the Philips camera is I420,
>> IYUV. So I guess, right now it is not working with this driver.
>>
>> The gencam_cu driver is working but does not publish the /camera_info
>> topic, which is needed to calibrate the camera.
> The gscam stack is working too and is publishing the
> topic /camera_info. The camera node can be started with
>
> roscd gscam
> cd bin
> export GSCAM_CONFIG="v4l2src device=/dev/video1 ! video/x-raw-yuv !
> ffmpegcolorspace"
> rosrun gscam gscam
>
>>>>> Also, always check answers.ros.org for existing answers to your
>>>>> problem and post your questions there.
>>>>> Regards,
>>>>> Tom
>>>>>
>>>>> W dniu 17.05.2011 10:19, Okko Lohmann pisze:
>>>>>> Hello,
>>>>>>
>>>>>> I am trying to get the uvc_camera-node (ubuntu 10.10, package
>>>>>> ros-diamondback-camera-umd) to work with my "Philips SPC
>>>>>> 900NC PC Camera" usb-webcam, but the node exits with the
>>>>>> following error:
>>>>>>
>>>>>> pixfmt 0 = 'PWC2' desc = 'Raw Philips Webcam'
>>>>>> discrete: 640x480:
>>>>>> pixfmt 1 = 'YU12' desc = '4:2:0, planar, Y-Cb-Cr'
>>>>>> discrete: 160x120: 1/5 1/10 1/15 1/20 1/25 1/30
>>>>>> discrete: 320x240: 1/5 1/10 1/15 1/20 1/25 1/30
>>>>>> discrete: 640x480: 1/5 1/10 1/15
>>>>>> terminate called after throwing an instance of
>>>>>> 'std::runtime_error' what(): couldn't set format
>>>>>> [uvc_camera-1] process has died [pid 11142, exit code -6].
>>>>>> log files:
>>>>>> ~/log/97474b26-8052-11e0-9f91-002326f94616/uvc_camera-1*.log
>>>>>> all processes on machine have died, roslaunch will exit
>>>>>> shutting down processing monitor... ... shutting down
>>>>>> processing monitor complete
>>>>>>
>>>>>> I am using the launch-file:
>>>>>>
>>>>>>
>>>>>> >>>>> output="screen"> >>>>> value="/dev/video1" /> >>>>> value="640" />
>>>>>>
>>>>>>
>>>>>>
>>>>>> the philips webcam is working with mplayer and the build in
>>>>>> laptop camera is working with the uvc_camera-node.
>>>>>>
>>>>>> O.Lo
>>>>>> _______________________________________________
>>>>>> ros-users mailing list
>>>>>> ros-users@code.ros.org
>>>>>> https://code.ros.org/mailman/listinfo/ros-users
>>>>> _______________________________________________
>>>>> ros-users mailing list
>>>>> ros-users@code.ros.org
>>>>> https://code.ros.org/mailman/listinfo/ros-users
>>>> _______________________________________________
>>>> ros-users mailing list
>>>> ros-users@code.ros.org
>>>> https://code.ros.org/mailman/listinfo/ros-users
>>>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users@code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
> _______________________________________________
> ros-users mailing list
> ros-users@code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users