Git Product home page Git Product logo

librealsense-armhf's Introduction

librealsense with ARM support

This repository is a fork of the original librealsense library with the addition of ARM support. Librealsense uses SSSE3 SIMD instructions for unpacking frames to the desired color format. This was necessary probably due to the nature of the pixel unpacking operations as they are inherently slow and are data parallel. Since SSSE3 is specific to x86 architecture, workarounds are needed for getting the code to compile under ARM.

My goal was to be able to use RealSense R200 sensor with NVIDIA Jetson TX1. So I took a shortcut and replaced all SSSE3 instructions with regular for loops. Ideally, these instructions should be rewritten with NEON for optimal performance, but on my Jetson TX1 I can have all streams enabled and maintain 60 FPS. This fork contains the modifications necessary to get librealsense to work under ARM. I have NOT tested every feature of the library and I don't provide ANY guarantee for functionality (neither written nor implied). Users have reported this to work with Jetson TK1 too but I'm not sure if TK1 can also maintain 60 FPS with all streams enabled.

I will try to keep this fork up to date with the original repository as best as I can. The original discussion thread that lead to this fork is located here.

Build Instructions

Comprehensive platform-specific installation instructions are available here. This fork needs to be build with the LIBUVC backend as the latest kernels on Jetson boards do not support the Video4Linux backend. I have tried the upstream linux kernel on the TX1 but without the necessary NVIDIA drivers, I do not think there is a way to get the V4L backend to work.

Troubleshooting

Every time the video streams are opened, the USB port needs to be reset. So far, I haven't found an elegant way of resetting the USB port via software and I had to resort to physically unplugging/replugging the USB3 port after every use. If you've been able to build this successfully under ARM but have problems getting the examples to work, try unplugging/replugging your RealSense sensor a few times. Also, running the examples with sudo privileges will output a more detailed error code when the examples fail to run.

License

Refer to the original repository for licensing information.

librealsense-armhf's People

Watchers

 avatar  avatar

Forkers

haochihlin

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.