给大家推荐一个安装kinect驱动最简便的方法:
找到配套的kinect驱动包,里面包括OPENNI,NITE,SENSOR,三部分组成,给大家一个下载地址.
网址: http://pan.baidu.com/s/1hqHB10w,提取密码:wrmn
里面包括三个压缩包,将这三个压缩包解压成文件夹,放在主目录下的 /home/username/software/文件夹下(username为你自己的用户名)
1.安装OPENNI
$ cd software/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10
$ sudo ./install.sh
显示:
Installing OpenNI
****************************
copying shared libraries...OK
copying executables...OK
copying include files...OK
creating database directory...OK
registering module 'libnimMockNodes.so'...OK
registering module 'libnimCodecs.so'...OK
registering module 'libnimRecorder.so'...OK
creating Java bindings directory...OK
Installing Java bindings...OK
*** DONE ***
则安装成功。
2.安装NITE
$ cd software/NITE-Bin-Linux-x64-v1.5.2.23
$ sudo ./install.sh
显示:
Installing NITE
***************
Copying shared libraries... OK
Copying includes... OK
Installing java bindings... OK
Installing module 'Features_1_3_0'...
Registering module 'libXnVFeatures_1_3_0.so'... OK
Installing module 'Features_1_3_1'...
Registering module 'libXnVFeatures_1_3_1.so'... OK
Installing module 'Features_1_4_1'...
Registering module 'libXnVFeatures_1_4_1.so'... OK
Installing module 'Features_1_4_2'...
Registering module 'libXnVFeatures_1_4_2.so'... OK
Installing module 'Features_1_5_2'...
Registering module 'libXnVFeatures_1_5_2.so'... OK
Copying XnVSceneServer... OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_3_0.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_3_1.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_4_1.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_4_2.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_5_2.so'...OK
Adding license.. OK
*** DONE ***
则安装成功。
3.安装SENSOR
$ cd software/Sensor-Bin-Linux-x64-v5.1.2.1
$ sudo ./install.sh
显示:
Installing PrimeSense Sensor
****************************
creating config dir /usr/etc/primesense...OK
copying shared libraries...OK
copying executables...OK
registering module 'libXnDeviceSensorV2KM.so' with OpenNI...OK
registering module 'libXnDeviceFile.so' with OpenNI...OK
copying server config file...OK
setting uid of server...OK
creating server logs dir...OK
installing usb rules...OK
installing modprobe blacklist...OK
*** DONE ***
则安装成功。
4.测试
连上kinect数据线
运行software中OPENNI的示例
$ cd ~/software/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10/Samples/Bin/x64-Release
$ ./NiViewer
显示深度图和正常图则安装成功。
5.安装freenect
很多视觉库调用freenect,而且openni也需要freenect支持,所以添加freenect库
sudo apt-get install libfreenect-dev
sudo apt-get install ros-indigo-freenect-launch
安装完毕。