The parameter facet: a ROS2 node's parameters, read one at a time and written non-atomically.
A ROS2 parameter is a named, typed configuration value on a ROS2 node, read and written over the node's parameter services and observable on /parameter_events. Three behaviours of the library (verified on Jazzy) shape this module:
- A read takes one name. get_parameters and describe_parameters answer with an empty list and no error when any one name is undeclared, so a batched read would blank every value on one typo.
- A write is never atomic. set_parameters reports per parameter, while the atomic variant discards the whole batch when one name is undeclared. The atomic call is not wrapped.
- One subscription to /parameter_events serves all watches and demultiplexes by node. It is open only while a watch exists. The topic also fires for changes a node makes to itself, and these are passed on.
ParameterType has the nine declarable members of rcl_interfaces/msg/ParameterType.
A value crossing this module is a ParameterValue: one of those types and a plain Python
value. The facet reads and writes through callables the Runtime supplies, so nothing here imports
rclpy.
| Class | |
What a ROS2 node says about one of its parameters, beyond the value it holds. |
| Class | |
The ROS2 parameters of every node on one Machine's graph. |
| Class | |
The range a ROS2 node declares for one numeric parameter, inclusive at both ends. |
| Class | |
What one look at one ROS2 parameter found: not present, present without a value, or a value. |
| Class | |
The declarable members of rcl_interfaces/msg/ParameterType. |
| Class | |
What one /parameter_events message says about one node. |
| Class | |
One ROS2 parameter value, as the declaration typed it. |
| Class | |
One consumer's view of one ROS2 node's parameter changes, and its lifetime. |
| Class | |
What a ROS2 node answered about one parameter of a write. |
| Function | absolute |
Return a ROS2 node path with the leading / that /parameter_events uses. |
| Function | describe |
Return the DescribeParameters request asking about exactly one name. |
| Function | description |
Return what a DescribeParameters response says about the one name it was asked for. |
| Function | get |
Return the GetParameters request for exactly one name. |
| Function | list |
Return the ListParameters request for every name (no prefixes, depth zero is DEPTH_RECURSIVE). |
| Function | names |
Return the parameter names a ListParameters response carries, in the node's own order. |
| Function | outcomes |
Return what a SetParameters response says, per parameter, paired back with its name. |
| Function | reading |
Return what a GetParameters response says about the one name it was asked for. |
| Function | set |
Return the SetParameters request writing a batch, in the order it was given. |
| Function | update |
Return one /parameter_events message as an update. |
| Constant | CALL |
Seconds to wait for the answer once a parameter request has gone. |
| Constant | DESCRIBE |
The service type behind <node>/describe_parameters, asked one name at a time. |
| Constant | EVENT |
How many parameter events one subscription and one watch buffer. |
| Constant | GET |
The service type behind <node>/get_parameters. |
| Constant | LIST |
The service type behind <node>/list_parameters, which answers what a node declares. |
| Constant | PARAMETER |
The type carried on PARAMETER_EVENTS_TOPIC. |
| Constant | PARAMETER |
The one topic every ROS2 node announces its parameter changes on. |
| Constant | SERVER |
Seconds a parameter call waits for the node's service to appear. |
| Constant | SET |
The service type behind <node>/set_parameters, which reports per parameter. |
| Type Alias | |
How the facet describes: the node path and one name. |
| Type Alias | |
How the facet follows /parameter_events: one generator, closed with the last watch. |
| Type Alias | |
How the facet lists: the node path, and every parameter name that node declares. |
| Type Alias | |
How the facet reads one parameter: the node path and one name. |
| Type Alias | |
How the facet writes: the node path and a batch, answered per parameter. |
| Function | _built |
Build one message dataclass from its field names (they are only known at run time). |
| Function | _field |
Return one field of a message dataclass by name (its fields are not statically known). |
| Function | _range |
Return the one range a ParameterDescriptor declares, or None. |
| Function | _raw |
Return one typed value as the rcl_interfaces/msg/ParameterValue that carries it. |
| Function | _value |
Return one rcl_interfaces/msg/ParameterValue as a typed value, or None when unset. |
| Constant | _BY |
Undocumented |
| Constant | _CODES |
The constants of rcl_interfaces/msg/ParameterType, written out so member order cannot renumber them. |
| Constant | _EMPTY |
Every field of rcl_interfaces/msg/ParameterValue at its zero. |
| Constant | _FIELD |
What each declarable parameter type is, in the package's field-type model. |
| Constant | _LOGGER |
Undocumented |
Return a ROS2 node path with the leading / that /parameter_events uses.
A path without the slash would match no event.
Return what a DescribeParameters response says about the one name it was asked for.
An empty list means the node has no such parameter, as for a read.
Return what a SetParameters response says, per parameter, paired back with its name.
Names missing from a short answer are marked unsuccessful and unanswered, with no reason text,
because SetOutcome.reason must only ever hold the node's own words.
Return what a GetParameters response says about the one name it was asked for.
An empty list means the node has no such parameter (and arrives without an error).
Return the SetParameters request writing a batch, in the order it was given.
The order matters: results come back positionally and outcomes_of pairs them by it.
Return one /parameter_events message as an update.
New and changed parameters, then deleted ones as readings that are not present.
The service type behind <node>/describe_parameters, asked one name at a time.
| Value |
|
How many parameter events one subscription and one watch buffer.
Deeper than a Monitoring Binding's because the buffer is shared by every node on the graph, and a dropped event leaves a UA Parameter holding a value the node no longer has.
| Value |
|
The service type behind <node>/list_parameters, which answers what a node declares.
| Value |
|
Seconds a parameter call waits for the node's service to appear.
ROS2 supplies no deadline: a parameter-service call to a node that is not running produces no error and no result.
| Value |
|
The service type behind <node>/set_parameters, which reports per parameter.
| Value |
|
How the facet describes: the node path and one name.
| Value |
|
How the facet follows /parameter_events: one generator, closed with the last watch.
| Value |
|
How the facet lists: the node path, and every parameter name that node declares.
| Value |
|
How the facet reads one parameter: the node path and one name.
| Value |
|
How the facet writes: the node path and a batch, answered per parameter.
| Value |
|
Return the one range a ParameterDescriptor declares, or None.
At most one of the two range fields is filled, with at most one element.
Return one rcl_interfaces/msg/ParameterValue as a typed value, or None when unset.
A code with no member here also gives None, so a wrong value is never shown.
The constants of rcl_interfaces/msg/ParameterType, written out so member order cannot renumber them.
| Value |
|
Every field of rcl_interfaces/msg/ParameterValue at its zero.
Message dataclasses have no defaults, so a value is built with all ten fields and the relevant one overwritten. A field added upstream raises a missing-argument TypeError here.
| Value |
|
What each declarable parameter type is, in the package's field-type model.
| Value |
|