Class NodeParameters
Defined in File node_parameters.hpp
Inheritance Relationships
Base Type
public rclcpp::node_interfaces::NodeParametersInterface
(Class NodeParametersInterface)
Class Documentation
-
class NodeParameters : public rclcpp::node_interfaces::NodeParametersInterface
Implementation of the NodeParameters part of the Node API.
Public Types
-
using CallbacksContainerType = std::list<OnSetParametersCallbackHandle::WeakPtr>
Public Functions
-
virtual ~NodeParameters()
-
virtual const rclcpp::ParameterValue &declare_parameter(const std::string &name, const rclcpp::ParameterValue &default_value, const rcl_interfaces::msg::ParameterDescriptor ¶meter_descriptor = rcl_interfaces::msg::ParameterDescriptor{}, bool ignore_override = false) override
Declare and initialize a parameter.
See also
-
virtual const rclcpp::ParameterValue &declare_parameter(const std::string &name, rclcpp::ParameterType type, const rcl_interfaces::msg::ParameterDescriptor ¶meter_descriptor = rcl_interfaces::msg::ParameterDescriptor(), bool ignore_override = false) override
Declare a parameter.
See also
-
virtual void undeclare_parameter(const std::string &name) override
Undeclare a parameter.
See also
-
virtual bool has_parameter(const std::string &name) const override
Return true if the parameter has been declared, otherwise false.
See also
-
virtual std::vector<rcl_interfaces::msg::SetParametersResult> set_parameters(const std::vector<rclcpp::Parameter> ¶meters) override
Set one or more parameters, one at a time.
See also
-
virtual rcl_interfaces::msg::SetParametersResult set_parameters_atomically(const std::vector<rclcpp::Parameter> ¶meters) override
Set one or more parameters, all at once.
-
virtual std::vector<rclcpp::Parameter> get_parameters(const std::vector<std::string> &names) const override
Get descriptions of parameters given their names.
-
virtual rclcpp::Parameter get_parameter(const std::string &name) const override
Get the description of one parameter given a name.
-
virtual bool get_parameter(const std::string &name, rclcpp::Parameter ¶meter) const override
Get the description of one parameter given a name.
-
virtual bool get_parameters_by_prefix(const std::string &prefix, std::map<std::string, rclcpp::Parameter> ¶meters) const override
Get all parameters that have the specified prefix into the parameters map.
-
virtual std::vector<rcl_interfaces::msg::ParameterDescriptor> describe_parameters(const std::vector<std::string> &names) const override
-
virtual std::vector<uint8_t> get_parameter_types(const std::vector<std::string> &names) const override
-
virtual rcl_interfaces::msg::ListParametersResult list_parameters(const std::vector<std::string> &prefixes, uint64_t depth) const override
-
virtual OnSetParametersCallbackHandle::SharedPtr add_on_set_parameters_callback(OnParametersSetCallbackType callback) override
Add a callback for when parameters are being set.
-
virtual void remove_on_set_parameters_callback(const OnSetParametersCallbackHandle *const handler) override
Remove a callback registered with
add_on_set_parameters_callback
.
-
virtual const std::map<std::string, rclcpp::ParameterValue> &get_parameter_overrides() const override
Return the initial parameter values used by the NodeParameters to override default values.
-
using CallbacksContainerType = std::list<OnSetParametersCallbackHandle::WeakPtr>