ZED SLAM Overview
StereoLabs visual-inertial SLAM for real-time 6DoF camera tracking and mapping
ZED SLAM is the StereoLabs visual-inertial SLAM (Simultaneous Localization and Mapping) technology. It estimates in real time where a ZED camera is and how it moves in 3D space. With area memory enabled, it also builds a map of the environment (a sparse map of visual landmarks with GEN_3), which it uses to correct drift (loop closure) and to recognize places already visited (relocalization).
The camera is tracked with six degrees of freedom (6DoF): translation (X, Y, Z) and rotation (roll, pitch, yaw).
ZED SLAM is performed by the Positional Tracking module of the ZED SDK. The API, the samples, and the integrations therefore keep the Positional Tracking name, for example enablePositionalTracking() and PositionalTrackingParameters.
ZED SLAM requires a stereo camera. The following cameras have specific requirements:
- The original ZED (out of production) has no IMU: only
GEN_1is supported, with visual tracking only (no inertial fusion). - The ZED X One GS/4K/S cameras are monocular. Two of them can be used as a virtual stereo camera. Since ZED SDK 5.6, ZED X One cameras can also be tracked together with at least one ZED stereo camera mounted on the same rig; see Multi-Camera Tracking.
ZED SLAM serves a wide range of applications, from mobile robotics and autonomous navigation to augmented reality, VR, and cinematic visual effects.
Learn how to build and use the Positional Tracking sample in the ZED SDK repository on GitHub.
How It Works
The ZED cameras use visual tracking to continuously estimate the motion of the camera within its environment. By analyzing and matching visual features across consecutive image frames, ZED SLAM extracts the 6DoF pose relative to a chosen reference frame.
Except for the original ZED, the cameras supported by ZED SLAM are also equipped with an inertial sensor capable of providing reliable high-frequency measurements of camera accelerations and angular velocities in motion. The inertial information can be activated in order to be directly fused with visual tracking information and provide an even more reliable estimate of camera movements.
Learn more about the Positional Tracking module modes and settings in their dedicated pages.
Visual-Inertial SLAM Pipeline
The ZED SLAM pipeline integrates:
-
Stereo Visual Odometry: Estimates motion by tracking visual features in 3D across frames.
-
Inertial Measurement Unit (IMU) data: Provides high-frequency accelerations and angular velocities for robust motion estimation during rapid movement or in low-texture areas.
-
SLAM: With area memory enabled, builds and maintains a map of the environment (a sparse map of 3D landmarks with
GEN_3) to reduce drift and enable loop closure, ensuring a scalable localization system capable of operating indoors, outdoors, or in dynamic environments, even when GPS is unavailable. Loop closure is a technique used in SLAM systems to correct accumulated drift when the camera returns to a previously visited location.
To learn more about the Mapping, Lifelong Mapping and Relocalization workflows, see the ZED SLAM Mapping Tutorial.
Pose Information
The ZED SDK outputs the camera’s pose in real-time. The pose is given for the left eye of the stereo camera. It is relative to a reference coordinate frame. Each pose includes:
-
Position:
[X, Y, Z]: the 3D location of the left camera in the reference coordinate frame. The vector’s norm is the straight-line distance between the current camera position and the origin of the reference coordinate frame (not the total distance traveled). -
Orientation:
[X, Y, Z, W]: a quaternion representing the camera’s rotation. This can be converted into Roll, Pitch, and Yaw or expressed as a rotation matrix. -
Linear and Angular velocity.
-
Additional metadata: timestamp, tracking confidence, and transformation matrices for convenient integration into robotic and simulation frameworks.
Pose data is available through the ZED SDK and its ecosystem plugins for Unity 3D, ROS 2, Unreal Engine, and other platforms.
To learn how to get Position and Orientation, see using the API section.
Typical Use Cases
Robotics Applications
Modern robotics depends on accurate perception and localization. From mobile robots navigating complex environments to humanoids performing precise manipulation, localization is a core component of autonomy. With ZED SLAM, robots can:
-
Navigate autonomously indoors and outdoors.
-
Build a persistent map of their environment and relocalize in it across sessions.
-
Estimate velocity and trajectory for motion planning and control.
-
Fuse with external data (wheel odometry, IMU, LiDAR) for hybrid localization pipelines 1.
Various types of robots can benefit from ZED SLAM:
-
Autonomous Mobile Robots (AMR): autonomous delivery, warehouse navigation, or last-mile logistics.
-
Drones and UAVs: GPS-denied flight and obstacle avoidance.
-
Humanoids and manipulators: dynamic tasks such as picking, carrying, or interacting with objects that require accurate 3D awareness.
The ZED SDK provides native ROS 2 integration, enabling seamless deployment in robotic frameworks such as Nav2 and MoveIt.
ZED SLAM is available in ROS 2 through the ZED ROS 2 wrapper packages (pos_tracking.* parameters).
1 Since ZED SDK 5.6, GEN_3 can fuse the motion of your own source, such as wheel odometry or an external VIO, as a motion prior. Fusing other data, such as LiDAR, requires a custom implementation or external libraries.
Virtual and Augmented Reality
In VR and AR, inside-out positional tracking allows users to move freely in physical space while maintaining perfect alignment between the virtual and real worlds. ZED SLAM enables:
- Full 6DoF user motion estimation in mixed reality applications.
- A stable world anchor for virtual content, combined with depth sensing for real-time occlusion and interaction.
- Integration with Unity 3D or Unreal Engine for immersive MR experiences.
For an example of how to use tracking in Unity, see the sample Build Your First AR/MR App.
Visual Effects and Match Moving
In film and VFX production, positional tracking allows precise match moving, reproducing real-world camera motion in a 3D scene. With the ZED’s real-time 6DoF tracking, filmmakers can:
- Capture camera movement directly on set.
- Drive virtual cameras in real time for previsualization or compositing.
- Seamlessly align CG elements with live-action footage for perfect perspective matching.
Learn more in the Green Screen Mixed Reality example.



