Skip to content

RealSense

AAEONAEU-SW edited this page Nov 26, 2020 · 1 revision


Capture from a RealSense camera (color, infrareds and depth composition)

Intel RealSense is a series of depth-sensing cameras. RealSense technology combines a classical camera with infrared emitters and sensors, which allows perceiving depth in the vision field, as well as tracking movement and gestures in 3D space. These cameras are available in both short-range (user-facing) and long-range (rear-facing) variants as part of specific laptops, tablets, convertibles, and all-in-one devices.

The ubilinux kernel comes pre-patched to support RealSense-specific video formats.

librealsense

An open-source, multi-platform capture driver called librealsense is available on GitHub.

Installation

Please ensure first that you are running the latest ubilinux kernel:

sudo apt update && sudo apt full-upgrade

After a successful upgrade and reboot, follow these steps:

  • Clone the librealsense repository:

  • Install all dependencies:

    • sudo apt-get install g++ pkg-config libusb-1.0-0-dev libglfw3-dev libxrandr-dev libxi-dev
    • Note: libglfw3-dev libxrandr-dev libxi-dev are only needed if you want to build the examples as well.''
  • Within the librealsense directory, build and install the library and examples:

    • make && sudo make install
      • Note: if you only want to build the library, use: make library && sudo make install''

The library should now be installed. To verify, you can now plug your camera and run one of the provided sample applications from the same directory:

bin/cpp-pointcloud

You should now see a capture of only the objects that are within a certain depth range, as in this example:

Integration with processing software

Robot Operating System (ROS)

ROS packages for the RealSense cameras are available at https://github.com/intel-ros/realsense

Clone this wiki locally