Ubuntu16.04 Kinect V1相机驱动安装方法(无Ros)

很多时候http://www.openni.ru以及http://www.openni.org这两个网站都无法打开,本文提供另一种方法安装Kinect V1相机驱动

 

使用openNI+sensor驱动Kinect V1

注意openNI和openNI2是两个版本的产品,不要安装错了。如果使用openNI2则需要openNI2+libFreenect 来驱动相机

 

首先安装依赖项

sudo apt-get install git build-essential python libusb-1.0-0-dev freeglut3-dev openjdk-8-jdk

sudo apt-get install doxygen graphviz mono-complete

 

然后安装openNI

git clone https://github.com/OpenNI/OpenNI.git

cd OpenNI

git checkout Unstable-1.5.4.0

cd Platform/Linux/CreateRedist

chmod +x RedistMaker

./RedistMaker

cd ../Redist/OpenNI-Bin-Dev-Linux-[xxx]  (根据Redist文件夹下的实际名称来  where [xxx] is your architecture and this particular OpenNI release)

sudo ./install.sh

 

 最后安装Kinect sensor

cd ~

git clone https://github.com/avin2/SensorKinect

cd SensorKinect

cd Platform/Linux/CreateRedist

chmod +x RedistMaker

./RedistMaker

cd ../Redist/Sensor-Bin-Linux-[xxx] (根据Redist文件夹下的实际名称来  where [xxx] is your architecture and this particular OpenNI release)

chmod +x install.sh

sudo ./install.sh

 

测试

首先将相机插上电源,USB连接电脑

cd OpenNI/Platform/Linux/Bin/x64-Release  此文件夹的名称每台电脑可能会有差异

./Sample-NiSimpleViewer

如果正确的话,会出现 yellow-black depth image

 

如果需要卸载以上软件包

同样运行./install.sh 带上参数-u 即可

sudo ./install.sh -u

 

 

你可能感兴趣的:(Ubuntu16.04 Kinect V1相机驱动安装方法(无Ros))