On this page

InteractiveMarkerPublisher QML Type

Publishes visualization_msgs::msg::InteractiveMarker messages — Time/frame info. More...

Import Statement: import QtRos2.VisualizationMsgs
Inherits:

PublisherBase

Status: Experimental Extension

Properties

Methods

  • void publish(interactiveMarker msg)

Detailed Description

If header.time is set to 0, the marker will be retransformed into its frame on each timestep. You will receive the pose feedback in the same frame. Otherwise, you might receive feedback in a different frame. For rviz, this will be the current 'fixed frame' set by the user.

InteractiveMarkerPublisher publishes interactiveMarker values to a ROS 2 topic. Set the topic and node properties, then call publish() to send messages.

See also InteractiveMarkerSubscriber and interactiveMarker.

Property Documentation

controls : list<interactiveMarkerControl>

The controls field value included in the next publish. Setting this property emits controlsChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

description : string

The description field value included in the next publish. Setting this property emits descriptionChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

header : header

The header field value included in the next publish. Setting this property emits headerChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

The menuEntries field value included in the next publish. Setting this property emits menuEntriesChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

name : string

The name field value included in the next publish. Setting this property emits nameChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

pose : pose

The pose field value included in the next publish. Setting this property emits poseChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

scale : real

The scale field value included in the next publish. Setting this property emits scaleChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

Method Documentation

void publish(interactiveMarker msg)

Publishes interactiveMarker msg to the ROS 2 topic set by the topic property. Does nothing if the publisher is not connected.

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