Skip to main content

PackedElementField

Defines a field within each element of a packed byte array

Parent Data Structure

PackedElementField appears in the Grid and PointCloud message data structures.

Data Structure

FieldTypeDescription
namestringThe name of the field
offsetuint32The byte offset from the data buffer
typeNumericTypeThe type of data in the field. Integers are stored in little-endian byte order.

Reference Implementation

The visualization data structure is framework-independent and can be implemented using any supported message encoding:

EncodingData Structure
ROS 1foxglove_msgs/PackedElementField
ROS 2foxglove_msgs/msg/PackedElementField
JSONfoxglove.PackedElementField
Protobuffoxglove.PackedElementField
FlatBuffersfoxglove.PackedElementField
OMG IDLfoxglove::PackedElementField

You must use the data structure name specified above so that the visualization can recognize the data structure.