Skip to content

PointsAnnotation

An array of points on a 2D image

Parent schema

PointsAnnotation appears in the ImageAnnotations message schema.

Schema

fieldtypedescription
timestamptimeTimestamp of annotation
typePointsAnnotationTypeType of points annotation to draw
pointsPoint2[]Points in 2D image coordinates (pixels).
outline_colorColorOutline color
outline_colorsColor[]Per-point colors, if type is POINTS, or per-segment stroke colors, if type is LINE_LIST, LINE_STRIP or LINE_LOOP.
fill_colorColorFill color
thicknessfloat64Stroke thickness in pixels

points

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

Reference implementations

Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:

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

You must use the schema names specified above for Foxglove to recognize the schema.

Flora is developed on the source code of Foxglove and Lichtblick, adhering to the MPL 2.0 license.