Skip to content

Files

Latest commit

301ac04 · Apr 4, 2024

History

History

tutorial 4 - positional tracking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 4, 2024
Apr 4, 2024
Apr 4, 2024
Sep 22, 2023
Feb 20, 2020

Tutorial 4: Positional tracking with the ZED

This tutorial shows how to use the ZED as a positional tracker. The program will loop until 1000 position are grabbed. We assume that you have followed previous tutorials.

Prerequisites

  • Windows 10, Ubuntu LTS
  • ZED SDK and its dependencies (CUDA)

Code overview

Enable positional tracking

Once the camera is opened, we must enable the positional tracking module in order to get the position and orientation of the ZED.

Capture pose data

The camera position is given by the class sl::Pose. This class contains the translation and orientation of the camera, as well as image timestamp and tracking confidence (quality).

A pose is always linked to a reference frame. The SDK provides two reference frame : REFERENCE_FRAME::WORLD and REFERENCE_FRAME::CAMERA.

It is not the purpose of this tutorial to go into the details of these reference frame. Read the documentation for more information.

In the example, we get the device position in the World Frame.

Inertial Data

If a ZED Mini or a ZED 2 is open, we can have access to the inertial data from the integrated IMU