Raw RGB Image is blank on Rasp Pi
Hi,
I've getting a problem where my /openni2camera/rgb/imageraw is blank. Just an array of zeros i.e
rostopic echo /openni2camera/rgb/imageraw
[.... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0]
All was working okay until I updated my raspberry pi OS. I recompiled the interface, then the image came back, then I upgraded to an rasp pi 2 and the image has gone again (This is with an XTION).
/openni2camera/depth/imageraw is fine
I've tried upgrading from groovy to indigo and recompiling everything. Same issue but now I get a ton of linusb debug
e.g (Which goes on an on). rosrun openni2camera openni2cameranode libusb: 0.000000 debug [libusbinit] libusb-1.0.9 git:1.0.9-28-g7634714 libusb: 0.000948 debug [findusbfspath] found usbfs at /dev/bus/usb libusb: 0.001341 debug [opinit] bulk continuation flag supported libusb: 0.001643 debug [opinit] zero length packet flag supported libusb: 0.001995 debug [opinit] found usb devices in sysfs libusb: 0.002620 debug [usbiaddpollfd] add fd 3 events 1 libusb: 0.003141 debug [usbiioinit] using timerfd for timeouts libusb: 0.003441 debug [usbiaddpollfd] add fd 5 events 1 [ INFO] [1426113609.918917629]: creating imagetransport... this might take a while... [ERROR] [1426113610.543932058]: Tried to advertise a service that is already advertised in this node [/openni2camera/setcamerainfo] [ INFO] [1426113610.544574397]: using default calibration URL [ INFO] [1426113610.546213760]: camera calibration URL: file:///home/pi/.ros/camerainfo/rgb.yaml [ INFO] [1426113610.547478699]: Unable to open camera calibration file [/home/pi/.ros/camerainfo/rgb.yaml] [ WARN] [1426113610.547868748]: Camera calibration file /home/pi/.ros/camerainfo/rgb.yaml not found. [ WARN] [1426113610.548407598]: Using default parameters for RGB camera calibration. [ INFO] [1426113610.548956813]: using default calibration URL [ INFO] [1426113610.549614829]: camera calibration URL: file:///home/pi/.ros/camerainfo/depth.yaml [ INFO] [1426113610.550009305]: Unable to open camera calibration file [/home/pi/.ros/camera_info/depth.yaml] [ WARN] [1426113610.550284459]: Camera calibration file /home/pi/.ros/camerainfo/depth.yaml not found. [ WARN] [1426113610.550557738]: Using default parameters for IR camera calibration. libusb: 0.690501 debug [libusbinit] libusb-1.0.9 git:1.0.9-28-g7634714 libusb: 0.690723 debug [findusbfspath] found usbfs at /dev/bus/usb libusb: 0.690808 debug [opinit] bulk continuation flag supported libusb: 0.690878 debug [opinit] zero length packet flag supported libusb: 0.690999 debug [opinit] found usb devices in sysfs libusb: 0.691299 debug [usbiaddpollfd] add fd 12 events 1 libusb: 0.691403 debug [usbiioinit] using timerfd for timeouts libusb: 0.691474 debug [usbiaddpollfd] add fd 14 events 1 libusb: 0.691741 debug [libusbgetdevicelist] libusb: 0.691982 debug [sysfsscandevice] scan 1-1 libusb: 0.692495 debug [sysfsscandevice] bus=1 dev=2 libusb: 0.692607 debug [enumeratedevice] busnum 1 devaddr 2 sessionid 258 libusb: 0.692683 debug [enumeratedevice] allocating new device for 1/2 (session 258)
Does anyone have any suggestions?
Thanks
Mark
Asked by MarkyMark2012 on 2015-03-11 17:51:49 UTC
Answers
So this probem seems to be related to the libusb driver on the pi 2
To solve download the driver from github
git clone https://github.com/libusb/libusb.git
and reinstall
Mark
Asked by MarkyMark2012 on 2015-03-16 08:08:24 UTC
Comments