Function rclcpp::parameter_value_from

Function Documentation

ParameterValue rclcpp::parameter_value_from(const rcl_variant_t *const c_value)

Convert parameter value from rcl_yaml_param_parser into a C++ class instance.

Parameters:

c_value[in] C structure containing a value of a parameter.

Throws:

InvalidParameterValueException – if the rcl_variant_t is inconsistent or invalid.

Returns:

an instance of a parameter value