class documentation

class ParameterDescription:

View In Hierarchy

What a ROS2 node says about one of its parameters, beyond the value it holds.

Everything an operator needs to write a declaration for the parameter.

Instance Variable additional_constraints The node's own free text about what it accepts, verbatim.
Instance Variable description The node's own one-line description, verbatim; empty if it gave none.
Instance Variable dynamic_typing Whether the node lets the parameter change type. A declaration names one type, so declaring such a parameter narrows what the node allows.
Instance Variable name The ROS2 parameter name, dotted as the node spells it.
Instance Variable present Whether the node declares that name at all.
Instance Variable range The numeric range the node declares, or None.
Instance Variable read_only Whether the node refuses every write. Such a parameter is still declarable, and every write to it is then refused, so this is a warning and not an error.
Instance Variable type The type the node declares it as, or None when the node answered a code with no member here (PARAMETER_NOT_SET). Always None when present is False.
additional_constraints: str =

The node's own free text about what it accepts, verbatim.

description: str =

The node's own one-line description, verbatim; empty if it gave none.

dynamic_typing: bool =

Whether the node lets the parameter change type. A declaration names one type, so declaring such a parameter narrows what the node allows.

name: str =

The ROS2 parameter name, dotted as the node spells it.

present: bool =

Whether the node declares that name at all.

range: ParameterRange | None =

The numeric range the node declares, or None.

read_only: bool =

Whether the node refuses every write. Such a parameter is still declarable, and every write to it is then refused, so this is a warning and not an error.

type: ParameterType | None =

The type the node declares it as, or None when the node answered a code with no member here (PARAMETER_NOT_SET). Always None when present is False.