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
| Field | Type | Description |
|---|---|---|
| name | string | The name of the field |
| offset | uint32 | The byte offset from the data buffer |
| type | NumericType | The 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:
| Encoding | Data Structure |
|---|---|
| ROS 1 | foxglove_msgs/PackedElementField |
| ROS 2 | foxglove_msgs/msg/PackedElementField |
| JSON | foxglove.PackedElementField |
| Protobuf | foxglove.PackedElementField |
| FlatBuffers | foxglove.PackedElementField |
| OMG IDL | foxglove::PackedElementField |
You must use the data structure name specified above so that the visualization can recognize the data structure.