Grid
A 2D grid of data.
Panel support
Grid
is used in the 3D and Image panels.
Schema
Field | Type | Description |
---|---|---|
timestamp | time | Timestamp of the grid. |
frame_id | string | Frame of reference. |
pose | pose | Origin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin. |
column_count | uint32 | Number of grid columns. |
cell_size | Vector2 | Size of a single grid cell along x and y axes, relative to pose . |
row_stride | uint32 | Number of bytes between rows in data . |
cell_stride | uint32 | Number of bytes between cells within a row in data . |
fields | PackedElementField[] | Fields in data . Red, green, blue, and alpha are optional for customizing the grid's color. |
data | bytes | Grid 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:
Encoding | Schema |
---|---|
ROS 1 | foxglove_msgs/Grid |
ROS 2 | foxglove_msgs/msg/Grid |
JSON | foxglove.Grid |
Protobuf | foxglove.Grid |
FlatBuffers | foxglove.Grid |
OMG IDL | foxglove::Grid |