On this page

StatisticDataPointSubscriber QML Type

Subscribes to statistics_msgs::msg::StatisticDataPoint messages — This holds the structure of a single data point of a StatisticDataType. More...

Import Statement: import QtRos2.StatisticsMsgs
Inherits:

SubscriberBase

Status: Experimental Extension

Properties

Signals

Detailed Description

This message is used in MetricsStatisticsMessage, defined in MetricsStatisticsMessage.msg.

Examples of the value of data point are - average size of messages received - standard deviation of the period of messages published - maximum age of messages published

A value of nan represents no data is available. One example is that standard deviation is only available when there are two or more data points but there is only one, and in this case the value would be nan. +inf and -inf are not allowed.

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

See also StatisticDataPointPublisher and statisticDataPoint.

Property Documentation

data : double

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

dataType : uint8_t

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

message : statisticDataPoint

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

Signal Documentation

messageReceived(statisticDataPoint msg)

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