Skip to main content

Grid

A 2D grid of data

Panel support

Grid is used in the 3D and Image panels.

Schema

fieldtypedescription
timestamptimeTimestamp of 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 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:

encodingschema
ROS 1foxglove_msgs/Grid
ROS 2foxglove_msgs/msg/Grid
JSONfoxglove.Grid
Protobuffoxglove.Grid
FlatBuffersfoxglove.Grid
OMG IDLfoxglove::Grid

You must use the schema names specified above for Foxglove to recognize the schema.