diff --git a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter index 5888b03..51e4fb4 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter +++ b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter @@ -4,7 +4,7 @@ rcl_interfaces::msg::ParameterDescriptor descriptor; descriptor.description = {{parameter_description | valid_string_cpp}}; descriptor.read_only = {{parameter_read_only}}; {%- if parameter_additional_constraints|length %} -descriptor.additional_constraints = "{{parameter_additional_constraints | valid_string_cpp}}"; +descriptor.additional_constraints = {{parameter_additional_constraints | valid_string_cpp}}; {% endif -%} {%- for validation in parameter_validations if ("bounds" in validation.function_name or "lt" in validation.function_name or "gt" in validation.function_name) %} {%- if "DOUBLE" in parameter_type %} diff --git a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter index ce1161e..625a842 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter +++ b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter @@ -20,7 +20,7 @@ rcl_interfaces::msg::ParameterDescriptor descriptor; descriptor.description = {{parameter_description | valid_string_cpp}}; descriptor.read_only = {{parameter_read_only}}; {%- if parameter_additional_constraints|length %} -descriptor.additional_constraints = "{{parameter_additional_constraints | valid_string_cpp}}"; +descriptor.additional_constraints = {{parameter_additional_constraints | valid_string_cpp}}; {% endif -%} {%- for validation in parameter_validations if ("bounds" in validation.function_name or "lt" in validation.function_name or "gt" in validation.function_name) %} {%- if "DOUBLE" in parameter_type %}