ubuntu14.04配置kinect驅動(openni+nite+sensor)+freenect驅動
給大家推薦一個安裝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
安裝完畢