install and setup kinect xbox 360 1473 with Raspberry Pi 7” Touchscreen Display [raspberrypi 2B]

based on:
http://www.mariolukas.de/2015/04/proof-of-concept-3d-scanner-with-kinect-and-raspberry-pi2/
https://fredfire1.wordpress.com/2016/09/23/install-and-setup-kinect-xbox-360-1473-debian-ubuntu-64bit/
https://github.com/MichMich/MagicMirror/wiki/Jessie-Lite-Installation-Guide

download raspbian jessie-lite and burn it on a sd-card:
https://www.raspberrypi.org/downloads/raspbian/
this tutorial was made with:
2016-05-27-raspbian-jessie-lite

install desktop lxde and enable boot to desktop:
sudo apt update && sudo apt install lxde-core -y #takes very long
sudo apt install lightdm -y && sudo raspi-config
now choose:
> 3 Boot Options > B4 Desktop Autologin > press Enter > go to Finish (press two times arrow right) > press Enter

install dependencies to compile the following things:
sudo apt install build-essential python-dev ipython python-opencv \
python-numpy python-scipy \
git-core git \
freeglut3 freeglut3-dev libxmu-dev libxi-dev \
cmake cmake-curses-gui pkg-config \
libudev-dev \
libgl1-mesa-dri

get the code for libusb and configure it:
cd ~
wget http://netcologne.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.19/libusb-1.0.19.tar.bz2 && \
tar xvjf libusb-1.0.19.tar.bz2 && \
cd libusb-1.0.19 && \
./configure

compile libusb and install libusb:
make && \
sudo make install

get libfreenect and run ccmake:
cd .. && \
git clone https://github.com/OpenKinect/libfreenect.git && \
cd libfreenect && \
mkdir build && \
cd build && \
ccmake ..

then you will get to a screen where you have to setup the build variables:
press key c
press arrow-key-down-button 7x times to switch to BUILD EXAMPLES
then press Enter-button to switch it to OFF
press key c
press key g

run cmake, make and the install libfreenect:
cmake .. && \
make && \
sudo make install

install some more:
cd ../wrappers/python
sudo python setup.py install

connect your kinect to to your pi and run an example file: #worked only for me when run from a keyboard connected to the pi, not over ssh from another computer

cd ~/libfreenect/wrappers/python && \
sudo python demo_cv_async.py

install cmake 3.1.0: #make took about ~25min
based on:
https://sourceforge.net/p/yadoms/wiki/Cross%20compile%20for%20raspberry%20PI/
cd
wget http://www.cmake.org/files/v3.1/cmake-3.1.0.tar.gz
tar xzf cmake-3.1.0.tar.gz
cd cmake-3.1.0/
./configure
make -j 4
sudo make install

other interesting links:
https://nurdspace.nl/ROS_on_Pi2_with_Kinect
https://github.com/xxorde/librekinect
http://structure.io/openni

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s