On this page

imageMarker QML Value Type

Qt value type wrapper for visualization_msgs::msg::ImageMarker ROS 2 messages. More...

Import Statement: import QtRos2.VisualizationMsgs
Status: Experimental Extension

Properties

Detailed Description

imageMarker is a structured value type usable in QML. It maps directly to the visualization_msgs::msg::ImageMarker ROS 2 message type.

Construct a imageMarker in QML by assigning a JavaScript object whose keys are its component properties, or by setting those properties individually.

See also ImageMarkerPublisher and ImageMarkerSubscriber.

Property Documentation

action : int32_t

Either ADD or REMOVE.

fillColor : colorRGBA

Fill color; in the range: [0.0-1.0]

filled : uint8_t

Whether or not to fill in the shape with color.

header : header

id : int32_t

Unique id within the namespace.

lifetime : duration

How long the object should last before being automatically deleted.

0 indicates forever.

ns : string

Namespace which is used with the id to form a unique id.

outlineColor : colorRGBA

The outline color of the marker.

outlineColors : list<colorRGBA>

The color for each line, point, etc. in the points field.

points : list<point>

Coordinates in 2D in pixel coords. Used for LINE_STRIP, LINE_LIST, POINTS, etc.

position : point

Two-dimensional coordinate position, in pixel-coordinates.

scale : real

The scale of the object, e.g. the diameter for a CIRCLE.

type : int32_t

One of the above types, e.g. CIRCLE, LINE_STRIP, etc.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.