-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Hi,
I would like to test a USB camera on ROS. I have followed the procedure to setup libuvc but the image on the raw topic is not rendered well.
This is a capture of the image on the topic /camera/image_raw, as you will see the image seems to be duplicated.

This is the output of the v4l2-ctl --list-formats-ext command:
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'UYVY'
Name : UYVY 4:2:2
Size: Discrete 640x480
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.022s (45.000 fps)
Size: Discrete 960x540
Interval: Discrete 0.017s (58.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.029s (34.000 fps)
Interval: Discrete 0.044s (22.500 fps)
Size: Discrete 1280x720
Interval: Discrete 0.022s (45.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
And this is my launch file:
<launch>
<group ns="camera">
<node pkg="libuvc_camera" type="camera_node" name="mycam">
<!-- Parameters used to find the camera -->
<param name="vendor" value="0x2560"/>
<param name="product" value="0xc120"/>
<param name="serial" value=""/>
<!-- If the above parameters aren't unique, choose the first match: -->
<param name="index" value="3"/>
<!-- Image size and type -->
<param name="width" value="960"/>
<param name="height" value="540"/>
<!-- choose whichever uncompressed format the camera supports: -->
<param name="video_mode" value="uyvy"/> <!-- or uncompressed/ yuyv/nv12/mjpeg -->
<param name="frame_rate" value="30"/>
<param name="timestamp_method" value="start"/> <!-- start of frame -->
<param name="camera_info_url" value="package://robot/config/cam0_calib.yaml"/>
<param name="auto_exposure" value="3"/> <!-- use aperture_priority auto exposure -->
<param name="auto_white_balance" value="false"/>
</node>
</group>
</launch>
Do you see something wrong?
My configuration is a computer running Ubuntu 16.04 with ROS Kinetic.
Thanks in advance,
Yoann.
lancemk
Metadata
Metadata
Assignees
Labels
No labels