Struct Grid

Struct Documentation

struct Grid

A 2D grid of data.

Public Members

std::optional<foxglove::Timestamp> timestamp

Timestamp of grid.

std::string frame_id

Frame of reference.

std::optional<Pose> pose

Origin of grid’s corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin.

uint32_t column_count = 0

Number of grid columns.

std::optional<Vector2> cell_size

Size of single grid cell along x and y axes, relative to pose

uint32_t row_stride = 0

Number of bytes between rows in data

uint32_t cell_stride = 0

Number of bytes between cells within a row in data

std::vector<PackedElementField> fields

Fields in data. red, green, blue, and alpha are optional for customizing the grid’s color.

std::vector<std::byte> data

Grid cell data, interpreted using fields, in row-major (y-major) order.