15 #include "rclcpp/create_generic_client.hpp"
16 #include "rclcpp/generic_client.hpp"
20 rclcpp::GenericClient::SharedPtr
22 std::shared_ptr<node_interfaces::NodeBaseInterface> node_base,
23 std::shared_ptr<node_interfaces::NodeGraphInterface> node_graph,
24 std::shared_ptr<node_interfaces::NodeServicesInterface> node_services,
25 const std::string & service_name,
26 const std::string & service_type,
28 rclcpp::CallbackGroup::SharedPtr group)
33 auto cli = rclcpp::GenericClient::make_shared(
40 auto cli_base_ptr = std::dynamic_pointer_cast<rclcpp::ClientBase>(cli);
41 node_services->add_client(cli_base_ptr, group);
Encapsulation of Quality of Service settings.
rmw_qos_profile_t & get_rmw_qos_profile()
Return the rmw qos profile.
RCL_PUBLIC RCL_WARN_UNUSED rcl_client_options_t rcl_client_get_default_options(void)
Return the default client options in a rcl_client_options_t.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.
RCLCPP_PUBLIC rclcpp::GenericClient::SharedPtr create_generic_client(std::shared_ptr< node_interfaces::NodeBaseInterface > node_base, std::shared_ptr< node_interfaces::NodeGraphInterface > node_graph, std::shared_ptr< node_interfaces::NodeServicesInterface > node_services, const std::string &service_name, const std::string &service_type, const rclcpp::QoS &qos=rclcpp::ServicesQoS(), rclcpp::CallbackGroup::SharedPtr group=nullptr)
Create a generic service client with a name of given type.
Options available for a rcl_client_t.
rmw_qos_profile_t qos
Middleware quality of service settings for the client.