Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 3.36 KB

installation_jetson.md

File metadata and controls

55 lines (35 loc) · 3.36 KB

NVidia Jetson Devices

NOTE: See support-matrix.md to learn more about Jetson support for RealSense devices.

Check out www.jetsonhacks.com for great content on everything Jetson! (not affiliated with Intel RealSense)

Getting started

  1. Prerequisites:
  • Jetson Nano or Jetson TX2 board (may also work on other Jetson devices)
  • RealSense D415, D435, D435i, SR300 or T265 Camera
  1. Follow official instructions to get your board ready. This guide will assume you are using official Ubuntu 16.04 image from NVidia. We strongly recommend enabling the Barrel Jack connector for extra power (See jetsonhacks.com/jetson-nano-use-more-power/ to learn how)

Jetson Nano

Kernel Patches? - There is a lot of confusion surrounding kernel patching for NVidia Jetson. Previous versions of this document as well as jetsonhacks.com guide are suggesting different patching strategies. While manual patching is still viable, starting with librealsense 2.24 (and 2.26 for the D435i) there is a better way:

  1. Register the server's public key:
sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE

In case the public key cannot be retrieved, check and specify proxy settings: export http_proxy="http://<proxy>:<port>", and rerun the command. See additional methods in the following link.

  1. Add the server to the list of repositories:
  • Ubuntu 16:
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
  • Ubuntu 18:
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
  1. Install the SDK:
sudo apt-get install librealsense2-utils
sudo apt-get install librealsense2-dev

installation

With dev package installed, you can compile an application with librealsense using g++ -std=c++11 filename.cpp -lrealsense2 or an IDE of your choice. To get started with RealSense using CMake check out librealsense/examples/cmake

  1. Reconnect the RealSense device and run: realsense-viewer to verify the installation:

d400 t265

You can also double-TAB after typing rs- to see the full list of SDK examples.

What about Building from Source? - you can still build the SDK from source. To avoid kernel patching prerequisites we recommend building with -DFORCE_LIBUVC=true CMake flag. See libuvc_installation.sh. If you have CUDA dev-kit installed, don't forget to add -DBUILD_WITH_CUDA=true for better performance.