NodePublisher QML Type
Publishes rosgraph_msgs::msg::Node messages — Represents the observable runtime state of a ROS Node Therefore, does not perfectly align with the abstract specification which created it. More...
| Import Statement: | import QtRos2.RosgraphMsgs |
| Inherits: | |
| Status: | Experimental Extension |
Properties
- actionClients : list<action>
- actionServers : list<action>
- name : string
- parameterValues : list<parameterValue>
- parameters : list<parameterDescriptor>
- publishers : list<topic>
- serviceClients : list<service>
- serviceServers : list<service>
- subscriptions : list<topic>
Methods
- void publish(node msg)
Detailed Description
NodePublisher publishes node values to a ROS 2 topic. Set the topic and node properties, then call publish() to send messages.
See also NodeSubscriber and node.
Property Documentation
actionClients : list<action>
The actionClients field value included in the next publish. Setting this property emits actionClientsChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
actionServers : list<action>
The actionServers field value included in the next publish. Setting this property emits actionServersChanged 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.
parameterValues : list<parameterValue>
The parameterValues field value included in the next publish. Setting this property emits parameterValuesChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
parameters : list<parameterDescriptor>
The parameters field value included in the next publish. Setting this property emits parametersChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
publishers : list<topic>
The publishers field value included in the next publish. Setting this property emits publishersChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
serviceClients : list<service>
The serviceClients field value included in the next publish. Setting this property emits serviceClientsChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
serviceServers : list<service>
The serviceServers field value included in the next publish. Setting this property emits serviceServersChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
subscriptions : list<topic>
The subscriptions field value included in the next publish. Setting this property emits subscriptionsChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
Method Documentation
void publish(node msg)
Publishes node 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.