rclcpp
master
C++ ROS Client Library API
|
#include <parameter_client.hpp>
Public Member Functions | |
SyncParametersClient (rclcpp::Node::SharedPtr node, const std::string &remote_node_name="", const rmw_qos_profile_t &qos_profile=rmw_qos_profile_parameters) | |
SyncParametersClient (rclcpp::Executor::SharedPtr executor, rclcpp::Node::SharedPtr node, const std::string &remote_node_name="", const rmw_qos_profile_t &qos_profile=rmw_qos_profile_parameters) | |
SyncParametersClient (rclcpp::Node *node, const std::string &remote_node_name="", const rmw_qos_profile_t &qos_profile=rmw_qos_profile_parameters) | |
SyncParametersClient (rclcpp::Executor::SharedPtr executor, rclcpp::Node *node, const std::string &remote_node_name="", const rmw_qos_profile_t &qos_profile=rmw_qos_profile_parameters) | |
SyncParametersClient (rclcpp::Executor::SharedPtr executor, const rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base_interface, const rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr node_topics_interface, const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr node_graph_interface, const rclcpp::node_interfaces::NodeServicesInterface::SharedPtr node_services_interface, const std::string &remote_node_name="", const rmw_qos_profile_t &qos_profile=rmw_qos_profile_parameters) | |
std::vector< rclcpp::Parameter > | get_parameters (const std::vector< std::string > ¶meter_names) |
bool | has_parameter (const std::string ¶meter_name) |
template<typename T > | |
T | get_parameter_impl (const std::string ¶meter_name, std::function< T()> parameter_not_found_handler) |
template<typename T > | |
T | get_parameter (const std::string ¶meter_name, const T &default_value) |
template<typename T > | |
T | get_parameter (const std::string ¶meter_name) |
std::vector< rclcpp::ParameterType > | get_parameter_types (const std::vector< std::string > ¶meter_names) |
std::vector< rcl_interfaces::msg::SetParametersResult > | set_parameters (const std::vector< rclcpp::Parameter > ¶meters) |
rcl_interfaces::msg::SetParametersResult | set_parameters_atomically (const std::vector< rclcpp::Parameter > ¶meters) |
rcl_interfaces::msg::ListParametersResult | list_parameters (const std::vector< std::string > ¶meter_prefixes, uint64_t depth) |
template<typename CallbackT > | |
rclcpp::Subscription< rcl_interfaces::msg::ParameterEvent >::SharedPtr | on_parameter_event (CallbackT &&callback) |
bool | service_is_ready () const |
template<typename RepT = int64_t, typename RatioT = std::milli> | |
bool | wait_for_service (std::chrono::duration< RepT, RatioT > timeout=std::chrono::duration< RepT, RatioT >(-1)) |
Static Public Member Functions | |
template<typename CallbackT , typename NodeT > | |
static rclcpp::Subscription< rcl_interfaces::msg::ParameterEvent >::SharedPtr | on_parameter_event (NodeT &&node, CallbackT &&callback) |
|
explicit |
rclcpp::SyncParametersClient::SyncParametersClient | ( | rclcpp::Executor::SharedPtr | executor, |
rclcpp::Node::SharedPtr | node, | ||
const std::string & | remote_node_name = "" , |
||
const rmw_qos_profile_t & | qos_profile = rmw_qos_profile_parameters |
||
) |
|
explicit |
rclcpp::SyncParametersClient::SyncParametersClient | ( | rclcpp::Executor::SharedPtr | executor, |
rclcpp::Node * | node, | ||
const std::string & | remote_node_name = "" , |
||
const rmw_qos_profile_t & | qos_profile = rmw_qos_profile_parameters |
||
) |
rclcpp::SyncParametersClient::SyncParametersClient | ( | rclcpp::Executor::SharedPtr | executor, |
const rclcpp::node_interfaces::NodeBaseInterface::SharedPtr | node_base_interface, | ||
const rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr | node_topics_interface, | ||
const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr | node_graph_interface, | ||
const rclcpp::node_interfaces::NodeServicesInterface::SharedPtr | node_services_interface, | ||
const std::string & | remote_node_name = "" , |
||
const rmw_qos_profile_t & | qos_profile = rmw_qos_profile_parameters |
||
) |
std::vector<rclcpp::Parameter> rclcpp::SyncParametersClient::get_parameters | ( | const std::vector< std::string > & | parameter_names | ) |
bool rclcpp::SyncParametersClient::has_parameter | ( | const std::string & | parameter_name | ) |
|
inline |
|
inline |
|
inline |
std::vector<rclcpp::ParameterType> rclcpp::SyncParametersClient::get_parameter_types | ( | const std::vector< std::string > & | parameter_names | ) |
std::vector<rcl_interfaces::msg::SetParametersResult> rclcpp::SyncParametersClient::set_parameters | ( | const std::vector< rclcpp::Parameter > & | parameters | ) |
rcl_interfaces::msg::SetParametersResult rclcpp::SyncParametersClient::set_parameters_atomically | ( | const std::vector< rclcpp::Parameter > & | parameters | ) |
rcl_interfaces::msg::ListParametersResult rclcpp::SyncParametersClient::list_parameters | ( | const std::vector< std::string > & | parameter_prefixes, |
uint64_t | depth | ||
) |
|
inline |
|
inlinestatic |
The NodeT type only needs to have a method called get_node_topics_interface() which returns a shared_ptr to a NodeTopicsInterface, or be a NodeTopicsInterface pointer itself.
|
inline |
|
inline |