From e6ac1444084ec384a4da354fee0573a3f048c99a Mon Sep 17 00:00:00 2001 From: Karsten Knese Date: Thu, 20 Jun 2019 10:43:44 -0700 Subject: [PATCH] use default parameter descriptor in parameters interface (#765) * use default parameter descriptor in parameters interface Signed-off-by: Karsten Knese * use default parameter for value Signed-off-by: Karsten Knese --- .../rclcpp/node_interfaces/node_parameters_interface.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rclcpp/include/rclcpp/node_interfaces/node_parameters_interface.hpp b/rclcpp/include/rclcpp/node_interfaces/node_parameters_interface.hpp index 16ff2afc8c..deb2be2306 100644 --- a/rclcpp/include/rclcpp/node_interfaces/node_parameters_interface.hpp +++ b/rclcpp/include/rclcpp/node_interfaces/node_parameters_interface.hpp @@ -51,8 +51,9 @@ class NodeParametersInterface const rclcpp::ParameterValue & declare_parameter( const std::string & name, - const rclcpp::ParameterValue & default_value, - const rcl_interfaces::msg::ParameterDescriptor & parameter_descriptor) = 0; + const rclcpp::ParameterValue & default_value = rclcpp::ParameterValue(), + const rcl_interfaces::msg::ParameterDescriptor & parameter_descriptor = + rcl_interfaces::msg::ParameterDescriptor()) = 0; /// Undeclare a parameter. /**