15 #ifndef RCLCPP__PARAMETER_DESCRIPTOR_WRAPPER_HPP_
16 #define RCLCPP__PARAMETER_DESCRIPTOR_WRAPPER_HPP_
25 #include "rcl_interfaces/msg/parameter_descriptor.hpp"
27 #include "rclcpp/parameter_value.hpp"
28 #include "rclcpp/node_interfaces/get_node_parameters_interface.hpp"
29 #include "rclcpp/visibility_control.hpp"
30 #include "node_interfaces/node_parameters_interface.hpp"
46 RCLCPP_PUBLIC rcl_interfaces::msg::ParameterDescriptor build()
const;
53 RCLCPP_PUBLIC
ParameterDescription & set_additional_constraints(
const std::string & constraints);
57 float min,
float max,
float step);
62 template<
typename NodeT>
67 auto node_param = rclcpp::node_interfaces::get_node_parameters_interface(node);
68 node_param->declare_parameter(
69 parameter_descriptor.name, default_value,
70 parameter_descriptor);
76 rcl_interfaces::msg::ParameterDescriptor parameter_descriptor;
Store the type and value of a parameter.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.