Jetson TX1 安装Kinect驱动

1.添加Universe源

$ sudo apt-add-repository universe
$ sudo apt-get update

2.安装编译工具和依赖项

$ sudo apt-get install cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev

3.克隆获取libfreenect 软件包

$ git clone git://github.com/OpenKinect/libfreenect.git

4.编译libfreenect lib和安装

$ cd libfreenect

  

$ mkdir build

  

$ cd build

  

$ cmake ..

  

$ make

  

$ sudo make install

5.配置USB

打开文件:

$ sudo gedit /etc/rc.local

在文件中添加:

# Disable USB auto-suspend, since it disconnects some devices such as webcams on Jetson TK1.
echo -1 > /sys/module/usbcore/parameters/autosuspend

然后重启:

$ sudo reboot

最后:

sudo bash -c ‘echo -1 > /sys/module/usbcore/parameters/autosuspend’

6.测试例程

cd libfreenect/build/bin

sudo ./freenect-glview

  

参考:http://www.jetsonhacks.com/2014/07/14/jetson-tk1-microsoft-kinect-using-openkinect/

posted @ 2017-03-15 20:40  ZYVV  阅读(352)  评论(0编辑  收藏  举报