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

Raw RGB Image is blank on Rasp Pi

asked 2015-03-11 17:51:49 -0500

MarkyMark2012 gravatar image

Hi,

I've getting a problem where my /openni2_camera/rgb/image_raw is blank. Just an array of zeros i.e

rostopic echo /openni2_camera/rgb/image_raw

[.... 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).

/openni2_camera/depth/image_raw 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 openni2_camera openni2_camera_node libusb: 0.000000 debug [libusb_init] libusb-1.0.9 git:1.0.9-28-g7634714 libusb: 0.000948 debug [find_usbfs_path] found usbfs at /dev/bus/usb libusb: 0.001341 debug [op_init] bulk continuation flag supported libusb: 0.001643 debug [op_init] zero length packet flag supported libusb: 0.001995 debug [op_init] found usb devices in sysfs libusb: 0.002620 debug [usbi_add_pollfd] add fd 3 events 1 libusb: 0.003141 debug [usbi_io_init] using timerfd for timeouts libusb: 0.003441 debug [usbi_add_pollfd] add fd 5 events 1 libusb: 0.690501 debug [libusb_init] libusb-1.0.9 git:1.0.9-28-g7634714 libusb: 0.690723 debug [find_usbfs_path] found usbfs at /dev/bus/usb libusb: 0.690808 debug [op_init] bulk continuation flag supported libusb: 0.690878 debug [op_init] zero length packet flag supported libusb: 0.690999 debug [op_init] found usb devices in sysfs libusb: 0.691299 debug [usbi_add_pollfd] add fd 12 events 1 libusb: 0.691403 debug [usbi_io_init] using timerfd for timeouts libusb: 0.691474 debug [usbi_add_pollfd] add fd 14 events 1 libusb: 0.691741 debug [libusb_get_device_list] libusb: 0.691982 debug [sysfs_scan_device] scan 1-1 libusb: 0.692495 debug [sysfs_scan_device] bus=1 dev=2 libusb: 0.692607 debug [enumerate_device] busnum 1 devaddr 2 session_id 258 libusb: 0.692683 debug [enumerate_device] allocating new device for 1/2 (session 258)

Does anyone have any suggestions?

Thanks

Mark

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-16 08:08:24 -0500

MarkyMark2012 gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-11 17:51:49 -0500

Seen: 151 times

Last updated: Mar 16 '15