install kinect driver for ARM---38

原创博客:转载请标明出处:http://www.cnblogs.com/zxouxuewei/

 

The video describes connecting a Microsoft Kinect to the NVIDIA Jetson TK1 Development Kit.

The Kinect provides 3D depth information about a scene. This is commonly referred to as a RGBD device because the depth information is returned encoded in an RGB image, with the color of each pixel representing how far away an object is from the sensor. Red is close, green is in the middle, blue is furthest away.

The demonstration shows a Microsoft Kinect 360 model 1414, the original XBOX 360 sensor. The Jetson and the Kinect are plugged into a 7 port USB hub, along with a keyboard and a mouse.

Some more information about Kinect

first install the libusb,By means of manual compilation

Download the libusb-master.zip or Can contact me via email 1192916972@qq.com

sudo ./autogen.sh
sudo make
sudo make install
sudo ldconfig

 

Installing the OpenKinect Drivers

Installing the OpenKinect libraries (libfreenect) is straightforward. A prerequisite for this installation is Internet access and installation of the Universe package repositories. These commands are entered using the ‘Terminal’ app, which is commonly referred to as the command line.

Universe packages can be added with:

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

$sudo apt-get install ros-indigo-openni*

To build the freenect library, first make sure that you have the build tools and library dependencies installed:

$ sudo apt-get install

cmake

freeglut3-dev

pkg-config

build-essential

libxmu-dev

libxi-dev

libusb-1.0-0-dev

Then Git clone the libfreenect repository:

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

Build libfreenect

To build the libfreenect library, start in the Home directory at the command line. Then enter the following commands:

$ cd libfreenect

$ mkdir build

$ cd build

$ cmake ..

$ make

$ sudo make install

NOTE: If you would like to uninstall libfreenect at some later time, go the ‘build’ directory:

$ sudo make uninstall

USB Autosuspend

As noted in the video, there is an issue with the default setting for USB ports being turned off when not in use. The Jetson does this to save energy. If this happens when the Kinect is connected, the Jetson will not recognize the Kinect. A solution is to execute commands automatically on every boot-up that alter this behavior. You can put your commands into the “/etc/rc.local” boot up script. For example, run this on your board:

$ sudo gedit /etc/rc.local

Then add this near the bottom of the file but before the “exit” line:

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

Save the file.

You then reboot the machine so that the changes take effect.

$ sudo reboot

NOTE: If you would like to do this more selectively, you can enter this command on the command line:

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

which will cause autosuspend to be turned off until the next boot cycle.

Sample Programs

Once the Jetson powers back up, and the Desktop appears on the screen. Plug in the Kinect to the USB hub. NOTE:You may have to unplug then plug back in the Kinect on every boot. The auto-suspension does not appear to take effect until after the port is powered down the first time. Navigate to the bin directory where the samples reside:

cd libfreenect/build/bin

and run one of the sample programs:

sudo ./freenect-glview

Then you are ready to play and have some fun!

Permissions

If you do not want to run your programs using sudo, you can add rules to your udev rules directory. Place the file ’51-kinect.rules’ into /etc/udev/rules.d directory, and set the video permissions.
First change your directory to your libfreenect/platform/linux/udev directory, then:

$ sudo adduser $USER video
$ sudo cp 51-kinect.rules /etc/udev/rules.d/51-kinect.rules

Make sure to log out and then log back in.

转载于:https://www.cnblogs.com/zxouxuewei/p/5430456.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/418613.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

前端学习(1893)vue之电商管理系统电商系统之自定义状态列的效果

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

tomcat学习笔记1

tomcat是一个开源软件,是由java语言编写的,它工作的话需要运行在jvm虚拟机中,说到jvm不得不说下java这个大名鼎鼎的编程 语言了 java这个编程语言最优秀的特点要数write once , run anywhere 额!怎么听起来有点流氓的感觉 没错&…

前端学习(1894)vue之电商管理系统电商系统之通过作用域插槽操作列

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

前端学习(1895)vue之电商管理系统电商系统之组件的分页显示

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

工作总结08

昨天做了数据库的创建。 今天准备做组件传数据,在Activity中使用数据库。 遇到的问题:数据创建成功,但是只能通过adb语言查看,相当于不可视,有时候发现不了,意味着数据库创建失败。转载于:https://www.cnbl…

前端学习(1896)vue之电商管理系统电商系统之修改用户状态

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

html5笔记

出处:http://www.cnblogs.com/xiaowei0705/archive/2011/04/19/2021372.html HTML5 LocalStorage 本地存储 HTML5 LocalStorage 本地存储 说到本地存储,这玩意真是历尽千辛万苦才走到HTML5这一步,之前的历史大概如下图所示: 最早的Cookies自然…

安装vuejs全过程、淘宝镜像

https://my.oschina.net/u/2444023/blog/760067?utm_sourcedebugrun&utm_mediumreferral

前端学习(1897)vue之电商管理系统电商系统之实现搜索功能

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

简单类的定义和继承

class book{ char* title;//书名 int num_pages;//页数 char * writer;//作者姓名public: book( char* the_title, int pages, const char* the_writer) :num_pages(pages) { title new char[strlen(the_title) 1]; strcpy(title, the_title); …

前端学习(1898)vue之电商管理系统电商系统之渲染用户的对话框

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

Module build failed (from ./node_modules/sass-loader/lib/loader.js):

https://blog.csdn.net/man8023man/article/details/95590474

Intellij IDEA运行报Command line is too long解法

https://blog.csdn.net/wochunyang/article/details/84776813

hadoop-2.7.2 分布式集群搭建

1.机器信息 五台centos 64位机器 2.集群规划 Server Name Hadoop Cluster Zookeeper Ensemble HBase Cluster Hadoop01 Name node & Resource manager Master Hadoop02 Secondary name node Hadoop03 Data node & Node manager √ Region ser…

前端学习(1899)vue之电商管理系统电商系统之渲染添加用户的表单

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

前端学习(1900)vue之电商管理系统电商系统之渲染添加用户的表单自定义邮箱的规则

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

@Select注解的使用

https://blog.csdn.net/chengbin918/article/details/88571036

树状数组成段更新模板

这个成段的编写复杂度很低&#xff0c;不需要加大空间复杂度&#xff0c;便于处理成段加&#xff0c;询问每个位置的值的操作&#xff1a; #include <bits/stdc.h> using namespace std ; typedef long long ll ; typedef long double ld ; typedef unsigned long long u…

前端学习(1901)vue之电商管理系统电商系统之渲实现添加表单的重置规则

目录结构 router.js import Vue from vue import Router from vue-router import Login from ./components/Login.vue import Home from ./components/Home.vue import Welcome from ./components/Welcome.vue Vue.use(Router)const router new Router({routes: [{path: /,re…

在循环里创建数据库连接,严重影响数据库性能

在循环里面去操作数据库肯定会慢的&#xff0c;而且还容易碰到新手&#xff0c;在循环里面创建数据库连接&#xff0c;会导致连接数满。一般查询的话&#xff0c;在外层一次性查询出来 然后 在逻辑层去循环组织数据。如果是新增&#xff0c;则可以考虑使用批量插入的方法去处理…