On this page

MarkerSubscriber QML Type

Subscribes to visualization_msgs::msg::Marker messages — See: - http://www.ros.org/wiki/rviz/DisplayTypes/Marker - http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes. More...

Import Statement: import QtRos2.VisualizationMsgs
Inherits:

SubscriberBase

Status: Experimental Extension

Properties

Signals

Detailed Description

for more information on using this message with rviz.

MarkerSubscriber receives marker values from a ROS 2 topic. Set the topic and node properties, then connect to the messageReceived() signal.

See also MarkerPublisher and marker.

Property Documentation

action : int32_t

The action field of the last received message. Updated whenever a new message arrives. actionChanged is emitted on every update.

color : colorRGBA

The color field of the last received message. Updated whenever a new message arrives. colorChanged is emitted on every update.

colors : list<colorRGBA>

The colors field of the last received message. Updated whenever a new message arrives. colorsChanged is emitted on every update.

frameLocked : bool

The frameLocked field of the last received message. Updated whenever a new message arrives. frameLockedChanged is emitted on every update.

header : header

The header field of the last received message. Updated whenever a new message arrives. headerChanged is emitted on every update.

id : int32_t

The id field of the last received message. Updated whenever a new message arrives. idChanged is emitted on every update.

lifetime : duration

The lifetime field of the last received message. Updated whenever a new message arrives. lifetimeChanged is emitted on every update.

meshFile : meshFile

The meshFile field of the last received message. Updated whenever a new message arrives. meshFileChanged is emitted on every update.

meshResource : string

The meshResource field of the last received message. Updated whenever a new message arrives. meshResourceChanged is emitted on every update.

meshUseEmbeddedMaterials : bool

The meshUseEmbeddedMaterials field of the last received message. Updated whenever a new message arrives. meshUseEmbeddedMaterialsChanged is emitted on every update.

message : marker

The last message received on topic. Updated whenever a new message arrives.

ns : string

The ns field of the last received message. Updated whenever a new message arrives. nsChanged is emitted on every update.

points : list<point>

The points field of the last received message. Updated whenever a new message arrives. pointsChanged is emitted on every update.

pose : pose

The pose field of the last received message. Updated whenever a new message arrives. poseChanged is emitted on every update.

scale : vector3

The scale field of the last received message. Updated whenever a new message arrives. scaleChanged is emitted on every update.

text : string

The text field of the last received message. Updated whenever a new message arrives. textChanged is emitted on every update.

texture : compressedImage

The texture field of the last received message. Updated whenever a new message arrives. textureChanged is emitted on every update.

textureResource : string

The textureResource field of the last received message. Updated whenever a new message arrives. textureResourceChanged is emitted on every update.

type : int32_t

The type field of the last received message. Updated whenever a new message arrives. typeChanged is emitted on every update.

uvCoordinates : list<uVCoordinate>

The uvCoordinates field of the last received message. Updated whenever a new message arrives. uvCoordinatesChanged is emitted on every update.

Signal Documentation

messageReceived(marker msg)

Emitted when a new marker arrives on topic. msg contains the received value.

Note: The corresponding handler is onMessageReceived.

© 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.