Skip to main content

PointCloud

A collection of N-dimensional points, possibly with additional field information such as normals or intensities.

Panel Support​

PointCloud is used in the 3D Panel and Image Panel.

Data Structure​

FieldTypeDescription
timestamptimePoint cloud timestamp
frame_idstringReference coordinate system
poseposePoint cloud origin position relative to the reference coordinate system
point_strideuint32Number of bytes between adjacent points in the data
fieldsPackedElementField[]Fields in data. Each point must have at least 2 coordinate fields from x, y, z; red, green, blue, and alpha are optional for customizing the color of each point.
databytesPoint data, interpreted using fields

Reference Implementation​

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

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

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