QoSProfilePublisher QML Type
Publishes rosgraph_msgs::msg::QoSProfile messages — Message-based representation of ROS 2 Quality of Service settings Default values are kept in sync with RMW by integration test Note that SYSTEM_DEFAULT and BEST_AVAILABLE values cannot be an observed value, because they resolve concretely at runtime. More...
| Import Statement: | import QtRos2.RosgraphMsgs |
| Inherits: | |
| Status: | Experimental Extension |
Properties
- deadline : duration
- depth : uint32_t
- durability : uint8_t
- history : uint8_t
- lifespan : duration
- liveliness : uint8_t
- livelinessLeaseDuration : duration
- reliability : uint8_t
Methods
- void publish(qoSProfile msg)
Detailed Description
They are included here for completeness to match the data structures in RMW
QoSProfilePublisher publishes qoSProfile values to a ROS 2 topic. Set the topic and node properties, then call publish() to send messages.
See also QoSProfileSubscriber and qoSProfile.
Property Documentation
deadline : duration
The deadline field value included in the next publish. Setting this property emits deadlineChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
depth : uint32_t
The depth field value included in the next publish. Setting this property emits depthChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
durability : uint8_t
The durability field value included in the next publish. Setting this property emits durabilityChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
history : uint8_t
The history field value included in the next publish. Setting this property emits historyChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
lifespan : duration
The lifespan field value included in the next publish. Setting this property emits lifespanChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
liveliness : uint8_t
The liveliness field value included in the next publish. Setting this property emits livelinessChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
livelinessLeaseDuration : duration
The livelinessLeaseDuration field value included in the next publish. Setting this property emits livelinessLeaseDurationChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
reliability : uint8_t
The reliability field value included in the next publish. Setting this property emits reliabilityChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.
Method Documentation
void publish(qoSProfile msg)
Publishes qoSProfile 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.