uvc_camera two webcams exit code -6

asked 2014-03-15 12:31:13 -0500

evk02 gravatar image

updated 2014-03-15 12:33:40 -0500

Hi, I'm trying to run two webcams with uvc_camera, but it throws exit code -6 and one always fails.

I know that there might be USB bandwidth issues, but I don't think that this would be the case here because: a. the error shows even if the lowest resolution and frame rate is used (320x240, frame rate: 5) b. the exit code is -6, while I believe USB bandwidth would throw exit rate 28

The odd thing that I can't find the log file what uvc_camera is referring to. Each camera works on its own. When trying to start both the first starts but the second doesn't.

Details are below.

  1. uvc_camera launch file:

<launch> <group ns="my_camera">
<node pkg="uvc_camera" type="uvc_camera_node" name="uvc_camera" output="screen"> <ppparam name="width" type="int" value="320"/> <ppparam name="height" type="int" value="240"/> <ppparam name="fps" type="int" value="5"/> <ppparam name="device" type="string" value="/dev/video0"/> <ppparam name="camera_info_url" type="string" value="file://$(find uvc_camera)/example.yaml"/> </node> </group> <group ns="my_camera2">
<node pkg="uvc_camera" type="uvc_camera_node" name="uvc_camera" output="screen"> <ppparam name="width" type="int" value="320"/> <ppparam name="height" type="int" value="240"/> <ppparam name="fps" type="int" value="5"/> <ppparam name="device" type="string" value="/dev/video1"/> <ppparam name="camera_info_url" type="string" value="file://$(find uvc_camera)/example2.yaml"/>
</node> </group> </launch>

  1. The full output of uvc_camera

    $ roslaunch uvc_camera camera_nodes.launch
    ... logging to /home/ilagi/.ros/log/f447e66e-ac8c-11e3-aa71-1ef6d7be00ad/roslaunch-odroid-8934.log
    Checking log directory for disk usage. This may take awhile.
    Press Ctrl-C to interrupt
    Done checking log file disk usage. Usage is <1GB.
    
    started roslaunch server http://odroid:50048/
    
    SUMMARY
    ========
    
    PARAMETERS
     * /my_camera/uvc_camera/camera_info_url
     * /my_camera/uvc_camera/device
     * /my_camera/uvc_camera/fps
     * /my_camera/uvc_camera/height
     * /my_camera/uvc_camera/width
     * /my_camera2/uvc_camera/camera_info_url
     * /my_camera2/uvc_camera/device
     * /my_camera2/uvc_camera/fps
     * /my_camera2/uvc_camera/height
     * /my_camera2/uvc_camera/width
     * /rosdistro
     * /rosversion
    
    NODES
      /my_camera2/
        uvc_camera (uvc_camera/uvc_camera_node)
      /my_camera/
        uvc_camera (uvc_camera/uvc_camera_node)
    
    ROS_MASTER_URI=http://localhost:11311
    
    core service [/rosout] found
    process[my_camera/uvc_camera-1]: started with pid [8952]
    process[my_camera2/uvc_camera-2]: started with pid [8953]
    [ INFO] [1394921915.916987324]: camera calibration URL: file:///home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example.yaml
    [ WARN] [1394921915.923423605]: [camera] does not match name my_camera in file /home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example.yaml
    [ INFO] [1394921915.951653390]: camera calibration URL: file:///home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example2.yaml
    [ WARN] [1394921915.956654048]: [camera] does not match name my_camera2 in file /home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example2.yaml
    opening /dev/video0
    pixfmt 0 = 'MJPG' desc = 'MJPEG'
      discrete: 1280x720:   1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 640x480:   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: 544x288:   1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 432x240:   1/60 1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 352x288:   1/60 1/30 1/25 1/20 1/15 1 ...
(more)
edit retag flag offensive close merge delete