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

Libfreenect not finding the Kinect

asked 2012-11-03 14:47:57 -0600

Kevin gravatar image

updated 2016-10-24 09:00:45 -0600

ngrennan gravatar image

This is sort of a follow up to this about libfreenect. I successfully got ROS installed on RaspberryPi (ARM) and compiled freenect_stack from @piyushk. I complete all of the steps, but it can't find the Kinect:

[kevin@raspberrypi freenect_stack]$ rosrun freenect_camera freenect_node 
[ INFO] [1351981388.025719933]: Initializing nodelet with 1 worker threads.
[ INFO] [1351981396.302127503]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981399.320659202]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981402.339445895]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981405.356383634]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981408.375364319]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981411.394149012]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981414.413055699]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981417.431225405]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981420.453722998]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981423.472487689]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981426.493123329]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981429.516694892]: No devices connected.... waiting for devices to be connected
[ INFO] [1351981432.538032515]: No devices connected.... waiting for devices to be connected

Is there something else I am missing?

edit retag flag offensive close merge delete

Comments

Hi Kevin - any suggestions around a couple of problems I've having building this:libfreenect: No definition of [libxmu-dev] for OS [debian] freenect_launch: Missing resource pcl (I've installed libxmu-dev and freenect_camera: No definition of [log4cxx] for OS version [] where to get log4cxx?

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-07 07:42:55 -0600 )edit

and finally - MSG: gencfg_cpp on:Test.cfg CMake Error at cmake/cfgbuild.cmake:66 (string): string sub-command REPLACE requires at least four arguments. Thanks Mark

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-07 07:46:02 -0600 )edit

lsusb gives me - "Bus 001 Device 008: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor" on the Pi

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-07 07:47:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-11-04 10:44:14 -0600

I don't have any experience with the RaspberryPi. I am not sure how well libfreenect supports it. Can you check to see if lsusb gives a suitable output:

lsusb

lsusb should give an output similar to:

Bus 001 Device 004: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
Bus 001 Device 005: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 001 Device 006: ID 045e:02ae Microsoft Corp. Xbox NUI Camera

Also, I am not sure which binaries inside libfreenect can be run on the pi, but hopefully atleast tiltdemo should work:

rosrun libfreenect tiltdemo

Let me know if the above work.

edit flag offensive delete link more

Comments

No I only see the Motor and the Audio and Camera don't show up. There appears to be others having the same issue, so I has more to do with the RaspberryPi and nothing to do with your code. Some people are thinking it has to do with the RPi's USB implementation.

Kevin gravatar image Kevin  ( 2012-11-10 02:12:02 -0600 )edit

Kevin - should you find a solution to this please let me know - am looking into it myself can covered/built from scratch all suggestions I've found thus far..... Thanks Mark

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-20 10:48:05 -0600 )edit

doing more research, many have built libfreenect for RPi, but I cannot find anyone that has really gotten it to work. RPi can see the kinect motor but not the camera and audio. I think this is a RPi issue and not anything else. RPi probably has a bandwidth issue on the USB bus. Still looking at it.

Kevin gravatar image Kevin  ( 2012-11-20 14:15:04 -0600 )edit
1

Yep agreed - I'm getting the same issues as you...shall keep looking

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-20 20:24:59 -0600 )edit
1

Kevin - by way of an update. Received new 512Mb board this w/e and updated the firmware. Now I'm able to see motor, audio and camera. A quick test of the tiltdemo also works. How did you get freenect_stack to build?

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-25 11:13:21 -0600 )edit

I get the following error: MSG: gencfg_cpp on:Test.cfg CMake Error at cmake/cfgbuild.cmake:66 (string): string sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): cmake/cfgbuild.cmake:87 (gencfg_cpp) CMakeLists.txt:24 (include) when rosmake

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-25 11:13:47 -0600 )edit

I get the following error: MSG: gencfg_cpp on:Test.cfg CMake Error at cmake/cfgbuild.cmake:66 (string): string sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): cmake/cfgbuild.cmake:87 (gencfg_cpp) CMakeLists.txt:24 (include)

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-11-25 11:13:51 -0600 )edit

Glad to hear you can see the camera now. I had no errors ... try opening a new question and posting the errors.

Kevin gravatar image Kevin  ( 2012-11-25 14:36:34 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2012-11-03 14:47:57 -0600

Seen: 1,981 times

Last updated: Nov 04 '12