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 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 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 |
You must use the schema names specified above for Foxglove to recognize the schema.