跳到主要内容

PointsAnnotation

二维图像上的点数组

父级数据结构

PointsAnnotation 出现在 ImageAnnotations 消息数据结构中。

数据结构

字段类型描述
timestamptime标注的时间戳
typePointsAnnotationType要绘制的点标注类型
pointsPoint2[]二维图像坐标(像素)中的点
outline_colorcolor轮廓颜色
outline_colorsColor[]如果 typePOINTS,则为每个点的颜色;如果 typeLINE_LISTLINE_STRIPLINE_LOOP,则为每个线段的描边颜色。
fill_colorcolor填充颜色
thicknessfloat64描边粗细(像素)

points

这些坐标使用图像左上角像素的左上角作为原点。

参考实现

Foxglove 数据结构是框架无关的,可以使用任何支持的消息编码来实现:

编码数据结构
ROS 1foxglove_msgs/PointsAnnotation
ROS 2foxglove_msgs/msg/PointsAnnotation
JSONfoxglove.PointsAnnotation
Protobuffoxglove.PointsAnnotation
FlatBuffersfoxglove.PointsAnnotation
OMG IDLfoxglove::PointsAnnotation

您必须使用上面指定的数据结构名称,以便 Foxglove 能够识别该数据结构。