On this page

TransitionSubscriber QML Type

Subscribes to lifecycle_msgs::msg::Transition messages — Default values for transitions as described in: http://design.ros2.org/articles/node_lifecycle.html. More...

Import Statement: import QtRos2.LifecycleMsgs
Inherits:

SubscriberBase

Status: Experimental Extension

Properties

Signals

Detailed Description

Reserved [0-9], publicly available transitions. When a node is in one of these primary states, these transitions can be invoked.

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

See also TransitionPublisher and transition.

Property Documentation

id : uint8_t

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

label : string

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

message : transition

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

Signal Documentation

messageReceived(transition msg)

Emitted when a new transition 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.