先说一下博主的运行环境:
Ubuntu kylin14.04
kinect第一代
另外还要注意的是openni、NITE、Sensor这三个包的版本必须匹配才能正常运行,我的版本分别是:
OpenNI-Bin-Dev-Linux-x64-v1.5.7.10.tar
NITE-Bin-Linux-x64-v1.5.2.23.tar
SensorKinect093-Bin-Linux-x64-v5.1.2.1
可以在我的网盘下载:http://pan.baidu.com/s/1hqHB10w 提取密码:wrmn
下载OpenNI-Bin-Dev-Linux-x64-v1.5.7.10.tar解压得到OpenNI-Bin-Dev-Linux-x64-v1.5.7.10文件夹,我把这三个包都放在home下面的software目录下
$ cd /home/siat/software/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10$ sudo ./install.sh
如果显示如下
Installing OpenNI****************************copying shared libraries...OKcopying executables...OKcopying include files...OKcreating database directory...OKregistering module 'libnimMockNodes.so'...OKregistering module 'libnimCodecs.so'...OKregistering module 'libnimRecorder.so'...OKcreating java bindings directory...OKInstalling java bindings...OK*** DONE ***
则安装成功
下载NITE-Bin-Linux-x64-v1.5.2.23.tar解压得到NITE-Bin-Linux-x64-v1.5.2.23文件夹放在software下面
$ cd /home/siat/software/NITE-Bin-Linux-x64-v1.5.2.23$ sudo ./install.sh
如果显示如下:
Installing NITE***************Copying shared libraries... OKCopying includes... OKInstalling java bindings... OKInstalling module 'Features_1_3_0'...Registering module 'libXnVFeatures_1_3_0.so'... OKInstalling module 'Features_1_3_1'...Registering module 'libXnVFeatures_1_3_1.so'... OKInstalling module 'Features_1_4_1'...Registering module 'libXnVFeatures_1_4_1.so'... OKInstalling module 'Features_1_4_2'...Registering module 'libXnVFeatures_1_4_2.so'... OKInstalling module 'Features_1_5_2'...Registering module 'libXnVFeatures_1_5_2.so'... OKCopying XnVSceneServer... OKInstalling module 'Features_1_5_2'registering module 'libXnVHandGenerator_1_3_0.so'...OKInstalling module 'Features_1_5_2'registering module 'libXnVHandGenerator_1_3_1.so'...OKInstalling module 'Features_1_5_2'registering module 'libXnVHandGenerator_1_4_1.so'...OKInstalling module 'Features_1_5_2'registering module 'libXnVHandGenerator_1_4_2.so'...OKInstalling module 'Features_1_5_2'registering module 'libXnVHandGenerator_1_5_2.so'...OKAdding license.. OK*** DONE ***
则安装成功
下载SensorKinect093-Bin-Linux-x64-v5.1.2.1.tar.bz2解压得到SensorKinect093-Bin-Linux-x64-v5.1.2.1文件夹放到software下面
$ cd /home/siat/software/Sensor-Bin-Linux-x64-v5.1.2.1$ sudo ./install.sh
如果显示如下
Installing PrimeSense Sensor****************************creating config dir /usr/etc/primesense...OKcopying shared libraries...OKcopying executables...OKregistering module 'libXnDeviceSensorV2KM.so' with OpenNI...OKregistering module 'libXnDeviceFile.so' with OpenNI...OKcopying server config file...OKsetting uid of server...OKcreating server logs dir...OKinstalling usb rules...OKinstalling modprobe blacklist...OK*** DONE ***
则安装成功
连上kinect的数据线
$ cd ~/software/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10/Samples/Bin/x64-Release$ ./NiViewer
如果出现kinect画面则配置成功
1、注意如果出现:
One or more of the following nodes could not be enumerated:Device: PrimeSense/SensorV2/5.1.6.6: The device is not connected!Device: PrimeSense/SensorV2/5.1.0.41: The device is not connected!Device: PrimeSense/SensorV2/5.1.6.6: The device is not connected!Device: PrimeSense/SensorV2/5.1.0.41: The device is not connected!Press any key to continue . . .
这样的问题有可能是这三个包版本不匹配,我这里的三个包亲测是可用的。但是Sensor如果是5.1.6.6版本则出现上面报错。
2、注意ubuntu下不能使用openni2.2和NITE2.2版本的包
联系客服