Expand description
Parameter types for ROS 2 compatible parameter handling
This module provides types for representing ROS 2 parameters including scalar values, arrays, and parameter descriptors.
Structs§
- Capacity
Exceeded - A value does not fit the compile-time parameter capacity.
- Floating
Point Range - Floating point range constraints for parameters
- Integer
Range - Integer range constraints for parameters
- Node
Flags - A per-node bool, bounded by the key’s own range.
- NodeKey
- Which node a parameter belongs to.
- Parameter
- A named parameter with value and optional descriptor
- Parameter
Descriptor - Parameter descriptor containing metadata
Enums§
- Descriptor
Text - One of a descriptor’s two prose fields. Each has its own capacity and its own knob, and a truncation report names both.
- Parameter
Range - Range constraints for a parameter
- Parameter
Type - ROS 2 parameter types
- Parameter
Value - Parameter value container
- SetParameter
Result Deprecated - Result of setting a parameter
Constants§
- IMPLIED_
STORE_ SLOTS - Slots of the parameter store this build KNOWS the image builds (the contract declares a parameter, the bringup declares
param_services, or the launch seeds a<param>): the stated or declaredMAX_PARAMETERS, else a small stock carve of 8; 0 when no store is implied. - MAX_
ARRAY_ LEN - Maximum length for array parameters (set via NROS_PARAMS_MAX_ARRAY_LEN, default 32).
- MAX_
BYTE_ ARRAY_ LEN - Maximum length for byte array parameters (set via NROS_PARAMS_MAX_BYTE_ARRAY_BYTES, default 256).
- MAX_
PARAMETERS - Maximum number of parameters the server can store (set via NROS_PARAMS_MAX_PARAMETERS, default 32).
- MAX_
PARAM_ CONSTRAINTS_ LEN - Maximum length for a parameter’s
additional_constraints, in bytes (set via NROS_PARAMS_MAX_CONSTRAINTS_BYTES, default 0 = no constraint text). - MAX_
PARAM_ DESCRIPTION_ LEN - Maximum length for a parameter description, in bytes (set via NROS_PARAMS_MAX_DESCRIPTION_BYTES, default 256; 0 = no descriptions).
- MAX_
PARAM_ NAME_ LEN - Maximum length for parameter names (set via NROS_PARAMS_MAX_NAME_BYTES, default 64).
- MAX_
STRING_ ARRAY_ LEN - Maximum elements in a string-array parameter (set via NROS_PARAMS_MAX_STRING_ARRAY_LEN, default 32); each element is bounded by
MAX_STRING_VALUE_LEN. - MAX_
STRING_ VALUE_ LEN - Maximum length for parameter string values (set via NROS_PARAMS_MAX_STRING_VALUE_BYTES, default 256).
- PARAM_
EVENTS_ DEPTH - History depth of each node’s
/parameter_eventspublisher (set via NROS_PARAMS_EVENTS_DEPTH; default 1000 on a hosted target, 1 otherwise). - STOCK_
STORE_ SLOTS - The carve for an image that builds a store but whose parameter count nobody stated or declared.
Traits§
- Parameter
Variant - Trait for types that can be used as typed parameters
Functions§
- fit_
description - Store as much of
textasdstholds, cut at a UTF-8 character boundary. Returns whether anything was cut.