15 #ifndef RCLCPP__NODE_INTERFACES__NODE_PARAMETERS_HPP_ 16 #define RCLCPP__NODE_INTERFACES__NODE_PARAMETERS_HPP_ 22 #include "rcl_interfaces/msg/list_parameters_result.hpp" 23 #include "rcl_interfaces/msg/parameter_descriptor.hpp" 24 #include "rcl_interfaces/msg/parameter_event.hpp" 25 #include "rcl_interfaces/msg/set_parameters_result.hpp" 38 namespace node_interfaces
50 bool use_intra_process);
58 std::vector<rcl_interfaces::msg::SetParametersResult>
60 const std::vector<rclcpp::parameter::ParameterVariant> & parameters);
64 rcl_interfaces::msg::SetParametersResult
66 const std::vector<rclcpp::parameter::ParameterVariant> & parameters);
70 std::vector<rclcpp::parameter::ParameterVariant>
82 const std::string & name,
87 std::vector<rcl_interfaces::msg::ParameterDescriptor>
97 rcl_interfaces::msg::ListParametersResult
98 list_parameters(
const std::vector<std::string> & prefixes, uint64_t depth)
const;
110 mutable std::mutex mutex_;
114 std::map<std::string, rclcpp::parameter::ParameterVariant> parameters_;
122 #endif // RCLCPP__NODE_INTERFACES__NODE_PARAMETERS_HPP_ virtual std::vector< rcl_interfaces::msg::ParameterDescriptor > describe_parameters(const std::vector< std::string > &names) const
virtual rcl_interfaces::msg::ListParametersResult list_parameters(const std::vector< std::string > &prefixes, uint64_t depth) const
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
virtual std::vector< rclcpp::parameter::ParameterVariant > get_parameters(const std::vector< std::string > &names) const
#define RCLCPP_SMART_PTR_ALIASES_ONLY(...)
Definition: macros.hpp:66
Definition: allocator_common.hpp:24
virtual rcl_interfaces::msg::SetParametersResult set_parameters_atomically(const std::vector< rclcpp::parameter::ParameterVariant > ¶meters)
virtual void register_param_change_callback(ParametersCallbackFunction callback)
std::function< rcl_interfaces::msg::SetParametersResult(const std::vector< rclcpp::parameter::ParameterVariant > &)> ParametersCallbackFunction
Definition: node_parameters_interface.hpp:86
virtual ~NodeParameters()
virtual std::vector< rcl_interfaces::msg::SetParametersResult > set_parameters(const std::vector< rclcpp::parameter::ParameterVariant > ¶meters)
Implementation of the NodeParameters part of the Node API.
Definition: node_parameters.hpp:42
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Pure virtual interface class for the NodeTopics part of the Node API.
Definition: node_topics_interface.hpp:38
Definition: parameter.hpp:45
Pure virtual interface class for the NodeParameters part of the Node API.
Definition: node_parameters_interface.hpp:35
NodeParameters(rclcpp::node_interfaces::NodeTopicsInterface *node_topics, bool use_intra_process)
virtual std::vector< uint8_t > get_parameter_types(const std::vector< std::string > &names) const
A publisher publishes messages of any type to a topic.
Definition: publisher.hpp:146
virtual rclcpp::parameter::ParameterVariant get_parameter(const std::string &name) const