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

usb_cam exit code-11 on arm firefly rk3288

asked 2016-07-19 05:26:13 -0500

isabellezheng gravatar image

updated 2016-07-19 07:42:44 -0500

gvdhoorn gravatar image

i launch the example usb_cam-test.launch on my computer it works, but when it turns to the arm firefly rk3288 i got the error:

firefly@firefly:~$ roslaunch usb_cam usb_cam-test.launch 
... logging to /home/firefly/.ros/log/9ab8650a-4d99-11e6-8ca2-00904c112233/roslaunch-firefly-2096.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://firefly:38621/

SUMMARY
========

PARAMETERS
 * /image_view/autosize: True
 * /rosdistro: indigo
 * /rosversion: 1.11.20
 * /usb_cam/camera_frame_id: usb_cam
 * /usb_cam/image_height: 480
 * /usb_cam/image_width: 640
 * /usb_cam/io_method: mmap
 * /usb_cam/pixel_format: yuyv
 * /usb_cam/video_device: /dev/video0

NODES
  /
    image_view (image_view/image_view)
    usb_cam (usb_cam/usb_cam_node)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[usb_cam-1]: started with pid [2114]
process[image_view-2]: started with pid [2115]
[ INFO] [1468923724.026820452]: Using transport "raw"
[ INFO] [1468923724.095676535]: using default calibration URL
[ INFO] [1468923724.095989785]: camera calibration URL: file:///home/firefly/.ros/camera_info/head_camera.yaml
[ INFO] [1468923724.096226618]: Unable to open camera calibration file [/home/firefly/.ros/camera_info/head_camera.yaml]
[ WARN] [1468923724.096343285]: Camera calibration file /home/firefly/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1468923724.096473660]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[ WARN] [1468923724.172862035]: unknown control 'white_balance_temperature_auto'

[ WARN] [1468923724.180684535]: unknown control 'focus_auto'

[usb_cam-1] process has died [pid 2114, exit code -11, cmd /opt/ros/indigo/lib/usb_cam/usb_cam_node __name:=usb_cam __log:=/home/firefly/.ros/log/9ab8650a-4d99-11e6-8ca2-00904c112233/usb_cam-1.log].
log file: /home/firefly/.ros/log/9ab8650a-4d99-11e6-8ca2-00904c112233/usb_cam-1*.log

and i tried to run the node usb_cam_node, the result is segment fault:
firefly@firefly:/opt/ros/indigo/lib/usb_cam$ rosrun usb_cam  usb_cam_node 
[ INFO] [1468923818.447067913]: using default calibration URL
[ INFO] [1468923818.447372997]: camera calibration URL: file:///home/firefly/.ros/camera_info/head_camera.yaml
[ INFO] [1468923818.447627038]: Unable to open camera calibration file [/home/firefly/.ros/camera_info/head_camera.yaml]
[ WARN] [1468923818.447767038]: Camera calibration file /home/firefly/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1468923818.447925997]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[ WARN] [1468923818.537832538]: unknown control 'white_balance_temperature_auto'

[ WARN] [1468923818.552972955]: unknown control 'focus_auto'

Segmentation fault
firefly@firefly:/opt/ros/indigo/lib/usb_cam$

can somebody help with this problem? In fact i have reflash the arm and reinstaller all , but i still got the same error

edit retag flag offensive close merge delete

Comments

This is a duplicate of usb_cam-test.launch exit code -11. Could you close either this one, or the other question?

gvdhoorn gravatar image gvdhoorn  ( 2016-07-19 05:48:38 -0500 )edit

i ve deleted the other one, thank you

isabellezheng gravatar image isabellezheng  ( 2016-07-19 07:23:26 -0500 )edit

I am facing the same problem. Did you fix it?

ErivaldoJunior gravatar image ErivaldoJunior  ( 2016-08-02 13:06:58 -0500 )edit

Well, I gave up using this package. I was not able to use my cameras. So, I tested the GSCAM and it worked flawlessly. Anyway, thank you for your response!

ErivaldoJunior gravatar image ErivaldoJunior  ( 2016-08-08 11:41:51 -0500 )edit

in fact i found that not a pb of current , it is because i changed a camera , the camera i use for now is logitech, can u pls tell me you use gscam with indigo or other?

isabellezheng gravatar image isabellezheng  ( 2016-08-10 06:20:54 -0500 )edit

I downloaded the GSCAM github files, added them to my catkin workspace, and compiled using catkin_make. I am using ros Indigo and it is working fine. I am using two Logitech cameras.

ErivaldoJunior gravatar image ErivaldoJunior  ( 2016-08-10 10:22:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-03 06:36:19 -0500

isabellezheng gravatar image

yes, its because i used a usb switch which is connected to the arm and connected the keyboard the camera and etc on the usb switch -> to the arm, so it leads to the current of arm not enough, the solution is use a usb hub which is connected to other power supply, sry for bad english , hope it helps

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-07-19 05:26:13 -0500

Seen: 1,342 times

Last updated: Jul 19 '16