15 #ifndef RCLCPP__NODE_INTERFACES__NODE_PARAMETERS_INTERFACE_HPP_ 16 #define RCLCPP__NODE_INTERFACES__NODE_PARAMETERS_INTERFACE_HPP_ 22 #include "rcl_interfaces/msg/list_parameters_result.hpp" 23 #include "rcl_interfaces/msg/parameter_descriptor.hpp" 24 #include "rcl_interfaces/msg/set_parameters_result.hpp" 32 namespace node_interfaces
55 const rcl_interfaces::msg::ParameterDescriptor & parameter_descriptor) = 0;
90 rcl_interfaces::msg::SetParametersResult
156 rcl_interfaces::msg::ListParametersResult
164 using ParametersCallbackFunction [[deprecated(
"use OnParametersSetCallbackType instead")]] =
176 [[deprecated(
"use set_on_parameters_set_callback() instead")]]
192 #endif // RCLCPP__NODE_INTERFACES__NODE_PARAMETERS_INTERFACE_HPP_ virtual std::vector< rcl_interfaces::msg::SetParametersResult > set_parameters(const std::vector< rclcpp::Parameter > ¶meters)=0
Set one or more parameters, one at a time.
virtual std::vector< rcl_interfaces::msg::ParameterDescriptor > describe_parameters(const std::vector< std::string > &names) const =0
virtual void register_param_change_callback(OnParametersSetCallbackType callback)=0
Structure to store an arbitrary parameter with templated get/set methods.
Definition: parameter.hpp:51
#define RCLCPP_SMART_PTR_ALIASES_ONLY(...)
Definition: macros.hpp:66
virtual OnParametersSetCallbackType set_on_parameters_set_callback(OnParametersSetCallbackType callback)=0
Register a callback for when parameters are being set, return an existing one.
virtual const rclcpp::ParameterValue & declare_parameter(const std::string &name, const rclcpp::ParameterValue &default_value, const rcl_interfaces::msg::ParameterDescriptor ¶meter_descriptor)=0
Declare and initialize a parameter.
This header provides the get_node_topics_interface() template function.
Definition: allocator_common.hpp:24
virtual ~NodeParametersInterface()=default
virtual const std::map< std::string, rclcpp::ParameterValue > & get_parameter_overrides() const =0
Return the initial parameter values used by the NodeParameters to override default values...
std::function< rcl_interfaces::msg::SetParametersResult(const std::vector< rclcpp::Parameter > &) > OnParametersSetCallbackType
Definition: node_parameters_interface.hpp:162
virtual rcl_interfaces::msg::ListParametersResult list_parameters(const std::vector< std::string > &prefixes, uint64_t depth) const =0
virtual bool get_parameters_by_prefix(const std::string &prefix, std::map< std::string, rclcpp::Parameter > ¶meters) const =0
Get all parameters that have the specified prefix into the parameters map.
virtual std::vector< rclcpp::Parameter > get_parameters(const std::vector< std::string > &names) const =0
Get descriptions of parameters given their names.
virtual bool has_parameter(const std::string &name) const =0
Return true if the parameter has been declared, otherwise false.
virtual void undeclare_parameter(const std::string &name)=0
Undeclare a parameter.
virtual rclcpp::Parameter get_parameter(const std::string &name) const =0
Get the description of one parameter given a name.
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Store the type and value of a parameter.
Definition: parameter_value.hpp:71
Pure virtual interface class for the NodeParameters part of the Node API.
Definition: node_parameters_interface.hpp:36
virtual std::vector< uint8_t > get_parameter_types(const std::vector< std::string > &names) const =0
virtual rcl_interfaces::msg::SetParametersResult set_parameters_atomically(const std::vector< rclcpp::Parameter > ¶meters)=0
Set and initialize a parameter, all at once.