Samples - Sensors API

Open in ClaudeOpen in ChatGPT

This section contains samples demonstrating how to use the Sensors API (sl::Sensors) to manage multiple ZED cameras, ZED X One cameras, and LiDARs through a single, unified interface — live or from recordings, with 3D visualization and an interactive multi-sensor calibration tool.

The Sensor Placer tool requires ZED SDK 5.2 or later, CUDA, Qt 5 (Widgets + OpenGL) and OpenGL.

Getting Started

  • First, download the latest version of the ZED SDK.
  • Download the Sensors API sample code in C++ or Python.

Samples in this category

Managed

Shows how to use sl::Sensors to manage ZED cameras, ZED X One cameras and LiDARs together through one unified interface. Supports auto-detection and live streaming from all connected devices, SVO/SVO2 and OSF file playback (including multi-file playback synchronized to a common timestamp), recording, 3D visualization (OpenGL or optional Rerun integration), and object detection / body tracking on ZED cameras. (C++, Python)

GitHub

Threaded

Shows how to manage multiple sensors using the individual sl::Camera and sl::Lidar APIs directly, with a dedicated worker thread per device instead of the unified sl::Sensors wrapper. Uses a lock-free, triple-buffered data path from worker threads to the main rendering thread, with optional timestamp-based cross-device synchronization. (C++)

GitHub

Sensor Placer

A GUI tool for interactively positioning and orienting multiple ZED cameras and LiDARs relative to each other. Displays live point clouds from all connected sensors in a shared 3D view so you can adjust each sensor’s pose, then export the result as a JSON configuration file for the Sensors API. (C++)

GitHub

For more information on the onboard IMU, barometer and magnetometer sensors available on ZED cameras, see the Sensors module documentation.