ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had a similar problem with my c920 and the ros usb_cam node ---- VERY low frame rate (~5fps). On top of that, the H264 option didn't work for my c920 with the usb_cam node. Try these settings, it gave me full frame 1920x1080 with 30fps on usb_cam node. Notice the pixel format is mjpeg. Using these settings, I was able to just rosbag the /usb_cam/image_raw/compressed topic and display it in rviz just fine.

  <node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
    <param name="video_device" value="/dev/video1" />
    <param name="image_width" value="1920" />
    <param name="image_height" value="1080" />
    <param name="pixel_format" value="mjpeg" />
    <param name="camera_frame_id" value="usb_cam" />
    <param name="io_method" value="mmap"/>