Git Product home page Git Product logo

installlibfreenect2's Introduction

installLibfreenect2

Install libfreenect2 on a Jetson TX1 Development Kit. libfreenect2 is an open source driver for Microsoft Kinect V2.

This repository contains a convenience script to install the prerequisites for building libfreenect and then build the library.

To run the convenience script:

$ ./installLibfreenect2.sh

When installation is complete, the example app 'Protonect' will be in the ~/libfreenect2/build/bin directory.

Notes

USB firmware

In the current L4T 23.2 and L4T 24.1 releases (as of July 10, 2016) there is an issue in the usb firmware which causes transfer failures with the Kinect V2. NVIDIA has made a firmware patch available. See:

https://devtalk.nvidia.com/default/topic/919354/jetson-tx1/usb-3-transfer-failures/post/4899105/#4899105

As a convenience, that patch is available from this repository, execute:

$ ./firmwarePatch.sh

which will copy the firmware file to the correct directory.

RGBA→BGRA Patch

On L4T 23.X versions (currently L4T 23.2), there is a difference between the stock libfreenect2 library and the one being installed here. This installation needs to add a patch to the the example "Protonect.cpp" file. The JPEG decompressor on the Jetson produces RGBA format, where as the viewer consumes BGRA format. The patch adds a simplistic algorithm to rearrange the bytes appropriately. To install the patch, uncomment the patch command line in installLibfreenect2.sh

If you plan to use this library in production L4T 23.X code, your application should consider writing specialized code to do the RGBA→BGRA conversion more efficiently.

For L4T 24.1, there is no patch applied as the JPEG decompressor produces BGRA format natively.

64 bit

As of this writing (July, 2016) there is a softlink issue with libGL.so. Typically you'll see this issue as:

undefined reference to `drm'

In this case, apply the libGLFix.sh script.

Note: The last commit tested on the libfreenect2 library on Github was 83f88b4c09f0b00724ae65785abcd4f3eeb79f93

libfreenect2 is at: https://github.com/OpenKinect/libfreenect2

installlibfreenect2's People

Contributors

jetsonhacks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.