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 (issue 0323).
- 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§
- Parameter
Range - Range constraints for a parameter
- Parameter
Type - ROS 2 parameter types
- Parameter
Value - Parameter value container
- SetParameter
Result - Result of setting a parameter
Constants§
- IMPLIED_
STORE_ SLOTS - Slots of the parameter store this build KNOWS the image builds:
MAX_PARAMETERSwhen the contract declares a parameter, the bringup declaresparam_services, or the launch seeds a<param>(NROS_PARAM_STORE); 0 otherwise. phase-382 W3’. - MAX_
ARRAY_ LEN - Maximum length for array parameters (set via NROS_MAX_ARRAY_LEN, default 32).
- MAX_
BYTE_ ARRAY_ LEN - Maximum length for byte array parameters (set via NROS_MAX_BYTE_ARRAY_LEN, default 256).
- MAX_
PARAMETERS - Maximum number of parameters the server can store (set via NROS_MAX_PARAMETERS, default 32).
- MAX_
PARAM_ CONSTRAINTS_ LEN - Maximum length for a parameter’s
additional_constraints, in bytes (set via NROS_MAX_PARAM_CONSTRAINTS_LEN, default 0 = no constraint text). phase-417 W4.a. - MAX_
PARAM_ DESCRIPTION_ LEN - Maximum length for a parameter description, in bytes (set via NROS_MAX_PARAM_DESCRIPTION_LEN, default 256; 0 = no descriptions). phase-446 F2.
- MAX_
PARAM_ NAME_ LEN - Maximum length for parameter names (set via NROS_MAX_PARAM_NAME_LEN, default 64).
- MAX_
STRING_ VALUE_ LEN - Maximum length for parameter string values (set via NROS_MAX_STRING_VALUE_LEN, default 256).
- PARAM_
EVENTS_ DEPTH - History depth of each node’s
/parameter_eventspublisher (set via NROS_PARAM_EVENTS_DEPTH; default 1000 on a hosted target, 1 otherwise). phase-491 W3.
Traits§
- Parameter
Variant - Trait for types that can be used as typed parameters
Functions§
- fit_
description - phase-446 F2 – store as much of
textasdstholds, cut at a UTF-8 character boundary. Returns whether anything was cut.