Node QML Type
Represents a ROS 2 node and hosts publisher, subscriber, and client entities. More...
| Import Statement: | import QtRos2.Core |
| Inherited By: | |
| Status: | Experimental Extension |
Properties
- entities : list<NodeChild>
- initialized : bool
- nodeName : string
- nodeNamespace : string
Methods
- void refreshNetworkInterfaces()
Detailed Description
Node is the primary attachment point for publisher, subscriber, service-client, and action-client items. Set the node property of each entity to this node.
import QtRos2.Core
Node {
nodeName: "my_qt_node"
}Child entities declared inside a Node item are automatically registered with it via the childEntities default property.
Property Documentation
entities : list<NodeChild>
Read-only. The list of NodeChild items (entities, parameters) currently registered with this node. Managed automatically as they are created and destroyed.
initialized : bool
Read-only. true once the underlying rclcpp node has been created and the ROS executor is running. All child entities start their connections when this becomes true.
nodeName : string
The ROS 2 node name. Must be a valid ROS identifier. Set this before the component completes; changing it after initialization has no effect.
nodeNamespace : string
The ROS 2 namespace for this node. Defaults to "/" (global namespace).
Method Documentation
void refreshNetworkInterfaces()
Makes the DDS layer re-scan the host's network interfaces. Fast DDS captures the interface list when the node is created; an interface that appears later (a cable plugged in, Wi-Fi association, a DHCP lease) is otherwise never used for discovery, leaving the node invisible to other machines until restart. The node watches for interface changes and calls this automatically every few seconds; call it directly for an immediate re-scan when the application has its own network-change signal. A no-op under non-Fast-DDS RMW implementations.
© 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.