rclcpp
master
C++ ROS Client Library API
|
Pure virtual interface class for the NodeParameters part of the Node API. More...
#include <node_parameters_interface.hpp>
Public Types | |
using | OnParametersSetCallbackType = std::function< rcl_interfaces::msg::SetParametersResult(const std::vector< rclcpp::Parameter > &) > |
using | instead = OnParametersSetCallbackType |
Public Member Functions | |
virtual | ~NodeParametersInterface ()=default |
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. More... | |
virtual void | undeclare_parameter (const std::string &name)=0 |
Undeclare a parameter. More... | |
virtual bool | has_parameter (const std::string &name) const =0 |
Return true if the parameter has been declared, otherwise false. More... | |
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. More... | |
virtual rcl_interfaces::msg::SetParametersResult | set_parameters_atomically (const std::vector< rclcpp::Parameter > ¶meters)=0 |
Set and initialize a parameter, all at once. More... | |
virtual std::vector< rclcpp::Parameter > | get_parameters (const std::vector< std::string > &names) const =0 |
Get descriptions of parameters given their names. More... | |
virtual rclcpp::Parameter | get_parameter (const std::string &name) const =0 |
Get the description of one parameter given a name. More... | |
virtual bool | get_parameter (const std::string &name, rclcpp::Parameter ¶meter) const =0 |
Get the description of one parameter given a name. More... | |
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. More... | |
virtual std::vector< rcl_interfaces::msg::ParameterDescriptor > | describe_parameters (const std::vector< std::string > &names) const =0 |
virtual std::vector< uint8_t > | get_parameter_types (const std::vector< std::string > &names) const =0 |
virtual rcl_interfaces::msg::ListParametersResult | list_parameters (const std::vector< std::string > &prefixes, uint64_t depth) const =0 |
virtual OnParametersSetCallbackType | set_on_parameters_set_callback (OnParametersSetCallbackType callback)=0 |
Register a callback for when parameters are being set, return an existing one. More... | |
virtual void | register_param_change_callback (OnParametersSetCallbackType callback)=0 |
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. More... | |
Pure virtual interface class for the NodeParameters part of the Node API.
using rclcpp::node_interfaces::NodeParametersInterface::OnParametersSetCallbackType = std::function< rcl_interfaces::msg::SetParametersResult(const std::vector<rclcpp::Parameter> &) > |
|
virtualdefault |
|
pure virtual |
Declare and initialize a parameter.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Undeclare a parameter.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Return true if the parameter has been declared, otherwise false.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Set one or more parameters, one at a time.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Set and initialize a parameter, all at once.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Get descriptions of parameters given their names.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Get the description of one parameter given a name.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Get the description of one parameter given a name.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Get all parameters that have the specified prefix into the parameters map.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Register a callback for when parameters are being set, return an existing one.
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Implemented in rclcpp::node_interfaces::NodeParameters.
|
pure virtual |
Return the initial parameter values used by the NodeParameters to override default values.
Implemented in rclcpp::node_interfaces::NodeParameters.