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/node.hpp"
28 #include "rclcpp/parameter_value.hpp"
29 #include "rclcpp/node_interfaces/get_node_parameters_interface.hpp"
30 #include "rclcpp/visibility_control.hpp"
31 #include "node_interfaces/node_parameters_interface.hpp"
47 RCLCPP_PUBLIC rcl_interfaces::msg::ParameterDescriptor build()
const;
54 RCLCPP_PUBLIC
ParameterDescription & set_additional_constraints(
const std::string & constraints);
58 float min,
float max,
float step);
63 template<
typename NodeT>
68 auto node_param = rclcpp::node_interfaces::get_node_parameters_interface(node);
69 node_param->declare_parameter(
70 parameter_descriptor.name, default_value,
71 parameter_descriptor);
77 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.