Grid

A 2D grid of data.

Panel support

Grid is used in the 3D and Image panels.

Schema

FieldTypeDescription
timestamptimeTimestamp of the grid.
frame_idstringFrame of reference.
poseposeOrigin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin.
column_countuint32Number of grid columns.
cell_sizeVector2Size of a single grid cell along x and y axes, relative to pose.
row_strideuint32Number of bytes between rows in data.
cell_strideuint32Number of bytes between cells within a row in data.
fieldsPackedElementField[]Fields in data. Red, green, blue, and alpha are optional for customizing the grid's color.
databytesGrid cell data, interpreted using fields, in row-major (y-major) order.

Reference implementations

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