30template <
typename ServiceType>
51 getLogger(),
"[" << this->
getName() <<
"] Client Service: " << *serviceName_);
58 std::shared_ptr<typename ServiceType::Response>
call(
59 std::shared_ptr<typename ServiceType::Request> &
request)
68 std::shared_ptr<rclcpp::Client<ServiceType>>
client_;
rclcpp::Node::SharedPtr getNode()
virtual std::string getName() const
rclcpp::Logger getLogger()
SmaccServiceClient(std::string serviceName)
std::shared_ptr< rclcpp::Client< ServiceType > > client_
std::shared_ptr< typename ServiceType::Response > call(std::shared_ptr< typename ServiceType::Request > &request)
std::optional< std::string > serviceName_
void onInitialize() override