integerRange QML Value Type
Represents bounds and a step value for an integer typed parameter. More...
| Import Statement: | import QtRos2.RclInterfaces |
| Status: | Experimental Extension |
Properties
Detailed Description
integerRange is a structured value type usable in QML. It maps directly to the rcl_interfaces::msg::IntegerRange ROS 2 message type.
Construct a integerRange in QML by assigning a JavaScript object whose keys are its component properties, or by setting those properties individually.
See also IntegerRangePublisher and IntegerRangeSubscriber.
Property Documentation
fromValue : int64_t
Start value for valid values, inclusive.
step : uint64_t
Size of valid steps between the from and to bound.
A step value of zero implies a continuous range of values. Ideally, the step would be less than or equal to the distance between the bounds, as well as an even multiple of the distance between the bounds, but neither are required.
If the absolute value of the step is larger than or equal to the distance between the two bounds, then the bounds will be the only valid values. e.g. if the range is defined as {from_value: 1, to_value: 2, step: 5} then the valid values will be 1 and 2.
If the step is less than the distance between the bounds, but the distance is not a multiple of the step, then the "to" bound will always be a valid value, e.g. if the range is defined as {from_value: 2, to_value: 5, step: 2} then the valid values will be 2, 4, and 5.
toValue : int64_t
End value for valid values, inclusive.
© 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.