34

There is a driver project established to run Kinect on Linux. See here: https://github.com/OpenKinect/libfreenect

Will this work with an RPi? What are the constraints/obstacles likely to be?

I'm thinking this would be a real help for an ambitious robotics project, eg, setup an RPi as an onboard controller, with the Kinect as the "eyes" for object avoidance etc (or more).

Jon Egerton
  • 3,083
  • 2
  • 24
  • 32

3 Answers3

13

I have just installed this library successfully in Arch Linux. I can't see any reason why it wouldn't install in any distro. It's important to note that I do not have a Kinect, so I cannot verify that the library works, only that it compiles and installs successfully.

Here are the steps I took:

Install dependencies

These packages are dependencies of the Kinect Library or the build process, and thus need installing first:

  • cmake

  • git

  • libusb

  • freeglut

  • libxmu

  • libxi

You should be able to find these using your basic package manager.

Check out the repository

git clone git://github.com/OpenKinect/libfreenect.git
cd libfreenect && git pull origin

Build the source

cmake -DCMAKE_INSTALL_PREFIX=/usr -DPROJECT_INCLUDE_INSTALL_DIR=/usr/include -DLIB_SUFFIX="" .
make
sudo make install

Set the udev rules (so that the Kinect is detected when plugged in):

sudo install -Dm644 platform/linux/udev/51-kinect.rules /etc/udev/rules.d/51-kinect.rules
Jivings
  • 22,656
  • 11
  • 94
  • 140
1

It's possible...video

I doubt it will be very practical to see anything, but if you just used data collection/processing, it might work. Side note: the Kinect eats up a HUGE amount of RAM to run all the visual stuff. So you could run a pared back version. Good luck :)

CAP_Cadet
  • 11
  • 2
0

Kinect works on Pi after some tweaks. Here is an example.

avra
  • 1,273
  • 8
  • 9