码迷,mamicode.com
首页 > 其他好文 > 详细

tx2 install openNI2 for astra

时间:2018-08-01 14:20:34      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:install   check   lease   linux   x64   nta   restart   -o   build   

1.配置usb接口信息

$> cd  /etc/udev/rules.d/
$> sudo gedit 56-orbbec.rules

Copy the following lines:

SUBSYSTEM=="usb", ATTR{idProduct}=="0400", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0401", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0402", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0403", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0404", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0405", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0406", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0407", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0408", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="0409", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idProduct}=="040a", ATTR{idVendor}=="2bc5", MODE:="0666", OWNER:="root", GROUP:="video"

Restart the udev system service:

$> sudo service udev reload
$> sudo service udev restart

Unplug the camera and plug it again.



2.运行下列命令

# To run visual samples(e.g., SimpleViewer), you will need freeglut3 header and libaries, please install:

$ sudo apt-get install build-essential freeglut3 freeglut3-dev

#check udev version, Orbbec Driver need libudev.so.1, if can‘t find it, can make symbolic link from libudev.so.x.x,
#which usually locate in /lib/aarch64-linux-gnu/ or /lib/i386-linux-gnu

$ldconfig -p | grep libudev.so.1
$cd /lib/aarch64-linux-gnu/
$sudo ln -s libudev.so.x.x.x libudev.so.1


3.拷贝到对应文件夹并解压缩:
下载 astra安装包:OpenNI-Linux-Arm64-2.3
http://pan.baidu.com/s/li5nGnml  密码:ep

# run install.sh to generate OpenNIDevEnvironment, which contains OpenNI development environment

$ sudo ./install.sh
 
# please replug in the device for usb-register
# add environment variables

$ source OpenNIDevEnvironment
$ cat OpenNIDevEnvironment >> ~/.bashrc
$ source ~/.bashrc

# build sample(e.g., SimpleViewer)
$ cd Samples/SimpleViewer
$ make
# run sample
# connect sensor
$ cd Bin/x64-Release
$ ./SimpleViewer

# now you should be able to see a GUI window showing the depth stream video

tx2 install openNI2 for astra

标签:install   check   lease   linux   x64   nta   restart   -o   build   

原文地址:https://www.cnblogs.com/hiram-zhang/p/9400449.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!