Skip to main content

PointsAnnotation

An array of points on a 2D image.

Parent Data Structure

PointsAnnotation appears in the ImageAnnotations message data structure.

Data Structure

FieldTypeDescription
timestamptimeAnnotation timestamp
typePointsAnnotationTypeType of point annotation to draw
pointsPoint2[]Points in 2D image coordinates (pixels)
outline_colorcolorOutline color
outline_colorsColor[]Outline color for each point if type is POINTS; outline color for each line segment if type is LINE_LIST, LINE_STRIP, or LINE_LOOP.
fill_colorcolorFill color
thicknessfloat64Outline thickness (pixels)

points

These coordinates use the top-left pixel of the image as the origin.

Reference Implementation

Foxglove data structures are framework agnostic and can be implemented in any message encoding:

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

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