Sample Code for Intel® RealSense™ Tracking cameras

Code Examples to start prototyping quickly: These simple examples demonstrate how to easily use the SDK to include code snippets that access the camera into your applications.

List of Examples:

Name

Language

Description

Experience Level

Technology

Capture

C++

Shows how to synchronize and render multiple streams: left, right, depth and RGB streams

Depth Sensing - Structured Light, Stereo

Motion Tracking - T260 and SLAM

Save To Disk

C++

Demonstrate how to render and save video streams on headless systems without graphical user interface (GUI)

Depth Sensing - Structured Light, Stereo

Motion Tracking - T260 and SLAM

Pose

C++

Demonstarates how to obtain data from pose frames

Motion Tracking - T260 and SLAM

Multicam

C++

Present multiple cameras depth streams simultaneously, in separate windows

Depth Sensing - Structured Light, Stereo

Motion Tracking - T260 and SLAM

Motion

C++

Demonstrates how to use data from gyroscope and accelerometer to compute the rotation of the camera

Depth with IMU

Motion Tracking - T260 and SLAM

Pose Prediction

C++

Demonstarates how to use tracking camera asynchroniously to implement simple pose prediction

Motion Tracking - T260 and SLAM

Pose and Image

C++

Demonstarates how to use tracking camera asynchroniously to obtain 200Hz poses and 30Hz images

Motion Tracking - T260 and SLAM

AR-Basic

C++

Shows how to use pose and fisheye frames to display a simple virtual object on the fisheye image

Motion Tracking - T260 and SLAM

Trajectory

C++

Shows how to calculate and render 3D trajectory based on pose data from a tracking camera

Motion Tracking - T260 and SLAM

Software Device

C++

Shows how to create a custom

rs2::device

Depth Sensing - Structured Light, Stereo

Motion Tracking - T260 and SLAM

Sensor Control

C++

A tutorial for using the

rs2::sensor

API

Depth Sensing - Structured Light, Stereo

Motion Tracking - T260 and SLAM