Helper functions for working with ROS 2 parameter types that may not be known at compile time. Provides functions to generate parameter structs, convert between Elixir values and ROS 2 parameter types.
Summary
Functions
Generate a ParameterDescriptor struct with default values.
Generate a ParameterEventDescriptors struct for parameter changes.
Generate a ParameterEvent struct for parameter changes.
Generate a Parameter struct with the given name and value. The type is automatically inferred from the value.
Generate a ParameterValue struct from an Elixir value. The type is automatically inferred.
Generate a ParameterValue struct with explicit type specification.
Generate a SetParametersResult struct.
Extract the Elixir value from a Parameter struct.
Convert a parameter type atom to the corresponding ROS 2 parameter type constant.
Extract the Elixir value from a ParameterValue struct.
Check if two ParameterValue structs are equivalent.
Check if two Parameter structs are equivalent.
Convert a ROS 2 parameter type constant to the corresponding atom.
Validate parameter name according to ROS 2 naming conventions.
Functions
Generate a ParameterDescriptor struct with default values.
Generate a ParameterEventDescriptors struct for parameter changes.
Generate a ParameterEvent struct for parameter changes.
Generate a Parameter struct with the given name and value. The type is automatically inferred from the value.
Generate a ParameterValue struct from an Elixir value. The type is automatically inferred.
Generate a ParameterValue struct with explicit type specification.
Generate a SetParametersResult struct.
Extract the Elixir value from a Parameter struct.
Convert a parameter type atom to the corresponding ROS 2 parameter type constant.
Extract the Elixir value from a ParameterValue struct.
Check if two ParameterValue structs are equivalent.
Check if two Parameter structs are equivalent.
Convert a ROS 2 parameter type constant to the corresponding atom.
Validate parameter name according to ROS 2 naming conventions.