Samples - Global Localization

Open in ClaudeOpen in ChatGPT

This section contains samples demonstrating how to use the ZED SDK’s Global Localization module for global-scale localization on a real-world map, fusing the camera’s visual-inertial odometry with real GNSS data. If you’re looking for a minimal, GNSS-hardware-free introduction to the API, see the Global Localization tutorial instead.

This module requires a stereo camera equipped with an inertial sensor (IMU), such as the ZED 2/2i, ZED Mini, ZED X, ZED X Mini, ZED X Nano.

Getting Started

Samples in this category

Live

Uses the Global Localization API with both a ZED camera and an external GNSS sensor. Displays the corrected positional tracking in the ZED reference frame using an OpenGL window, and the geo-position on a real-world map in a browser. (C++, Python)

GitHub

Recording

Records data from both a ZED camera and an external GNSS sensor to an SVO file and a JSON file respectively, producing the input data needed by the Playback sample. (C++, Python)

GitHub

Playback

Uses the Global Localization API for global-scale localization on a real-world map, using the data produced by the Recording sample to display geo-positions on a map. (C++, Python)

GitHub

Map Server

A small web server used by the Live and Playback samples to display location data on a real-world map in a browser.

GitHub