Skip to navigation

Samples - Positional Tracking

Open in ClaudeOpen in ChatGPT

This section contains samples demonstrating how to use the ZED SDK’s Positional Tracking module to track the camera’s position and orientation in 3D space.

Getting Started

Samples in this category

Positional Tracking

Displays the live position and orientation of the camera in a 3D OpenGL window, giving a solid understanding of how to leverage the ZED stereo camera for accurate and reliable tracking of the device’s pose. (C++, Python, C#)

Since ZED SDK 5.6, the C++ version can also feed a motion prior to the positional tracking, from a JSON file or from an SVO that carries one, and shows, for each image, how the motion prior was used.

GitHub

Multi-Camera Positional Tracking

Tracks ZED and ZED One cameras mounted on one rigid body with the Sensors API, from live cameras, SVO files or streams listed in a YAML file, and shows the rig, its path and the shared map in 3D. See Multi-Camera Tracking. Added in ZED SDK 5.6. (C++)

Motion Prior Recording

Records an SVO that carries a motion prior next to the images, using the camera rotation integrated from its gyroscope as an example source. The Positional Tracking sample then replays this SVO with its motion prior, with no other input. Added in ZED SDK 5.6. (C++)

FBX Export

Shows how to export the tracking data generated by the Positional Tracking module into the FBX format, for use in 3D animation and content-creation tools. (C++)

GitHub