CompressedImage

A compressed image.

Panel support

CompressedImage is used in the 3D and Image panels.

Schema

FieldTypeDescription
timestamptimeTimestamp of the image.
frame_idstringFrame of reference for the image. The origin of the frame is the optical center of the camera. +X points right in the image, +Y points down, +Z points into the plane.
databytesCompressed image data.
formatstringImage format. Supported values: jpeg, png, webp, avif.

Note: A new ROS image format string will be accepted but not parsed or decoded by the viewer. Only the standard formats (jpeg, png, webp, avif) will be recognized and decoded natively.
Other format strings will rely on JavaScript's Blob MIME type parsing, which does not support the ROS-specific format strings..

Reference implementations

Foxglove schemas are framework-agnostic and can be implemented using any supported message encoding: