On this page

statisticDataPoint QML Value Type

This holds the structure of a single data point of a StatisticDataType. More...

Import Statement: import QtRos2.StatisticsMsgs
Status: Experimental Extension

Properties

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.

statisticDataPoint is a structured value type usable in QML. It maps directly to the statistics_msgs::msg::StatisticDataPoint ROS 2 message type.

Construct a statisticDataPoint in QML by assigning a JavaScript object whose keys are its component properties, or by setting those properties individually.

See also StatisticDataPointPublisher and StatisticDataPointSubscriber.

Property Documentation

data : double

The value of the data point

dataType : uint8_t

The statistic type of this data point, defined in StatisticDataType.msg

Default value should be StatisticDataType.STATISTICS_DATA_TYPE_UNINITIALIZED (0).

© 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.