打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Ubuntu安装Kinect驱动(openni、NITE、Sensor)及遇到的问题

一、前言

先说一下博主的运行环境:
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

下载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

下载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 ***

则安装成功

四、安装Sensor

下载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版本的包

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
(原创)OpenNI和Kinect中文安装教程
Kinect OpenNI学习笔记之1(开发环境的建立)
Microsoft Kinect SDK 和 PrimeSense OpenNI 的区别(摘文)
关于在Unity3D中使用Kinect的一些研究
3D扫描教程
2014 Kinect Autonomous Mobile Robot Navigation Contest
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服