class documentation

class ParameterRange:

View In Hierarchy

The range a ROS2 node declares for one numeric parameter, inclusive at both ends.

A ParameterDescriptor carries at most one floating_point_range or integer_range; this is either of them.

Method admits Return whether a value lies between the two bounds, both included.
Instance Variable high to_value, the largest value the node accepts.
Instance Variable low from_value, the smallest value the node accepts.
Instance Variable step The node's step. Zero means any value between the two bounds.
def admits(self, value: float) -> bool:

Return whether a value lies between the two bounds, both included.

The step is not checked: the node applies it with a tolerance it does not publish.

high: float =

to_value, the largest value the node accepts.

low: float =

from_value, the smallest value the node accepts.

step: float =

The node's step. Zero means any value between the two bounds.