The “zed_msgs” Package
The “zed_msgs” Package
The zed_msgs package provides all the custom interfaces (topics, services) used by the ZED ROS 2 Wrapper and the ZED ROS 2 Examples. The definitions are maintained in the zed-ros2-interfaces repository.
The zed_msgs package does not depend on CUDA or the ZED SDK. You can install it on any ROS 2 machine — even without an NVIDIA GPU — to subscribe to or publish ZED interfaces from a remote node.
Installation
Binary installation
The package is available as a binary for the supported ROS 2 distributions:
where <ros2-distro> is your ROS 2 distribution (e.g. humble or jazzy).
Build from source
You can also clone and build the package in your colcon workspace:
Topics (messages)
The package defines the custom messages published by the ZED nodes, covering node status, positional tracking, GNSS fusion, plane detection, object detection, and body tracking.
The available message types are:
zed_msgs/Heartbeatzed_msgs/HealthStatusStampedzed_msgs/SvoStatuszed_msgs/PosTrackStatuszed_msgs/GnssFusionStatuszed_msgs/MagHeadingStatuszed_msgs/DepthInfoStampedzed_msgs/PlaneStampedzed_msgs/ObjectsStamped/zed_msgs/Objectzed_msgs/BoundingBox2Df/zed_msgs/BoundingBox2Di/zed_msgs/BoundingBox3Dzed_msgs/Keypoint2Df/zed_msgs/Keypoint2Di/zed_msgs/Keypoint3Dzed_msgs/Skeleton2D/zed_msgs/Skeleton3D
For the full field-by-field definition of each message, see the Custom Message Types page.
Magnetic Heading status
The zed_msgs/MagHeadingStatus message reports the reliability of the magnetometer-based heading (ZED 2, ZED 2i):
Services
The package also defines the services exposed by the ZED node. All services follow the standard ROS 2 response pattern, returning a bool success flag and a string message with additional information.
SetPose
Restart positional tracking from a new pose expressed in the camera_link frame.
SetROI
Set the Region of Interest used by the ZED SDK for processing. See the Region of Interest module for details.
SaveAreaMemory
Save the current area memory (spatial memory map) to a file for later reuse. See the Positional Tracking module.
StartSvoRec
Start recording the camera stream to an SVO file. See Record and Replay Data.
SetSvoFrame
Jump to a specific frame while replaying an SVO file.

