10#include <boost/optional/optional_io.hpp>
16template <
typename ServiceType>
38 ROS_ERROR(
"service client with no service name set. Skipping.");
42 ROS_INFO_STREAM(
"[" << this->
getName() <<
"] Client Service: " << *serviceName_);
45 client_ =
nh_.serviceClient<ServiceType>(*serviceName_);
50 bool call(ServiceType &srvreq)
virtual std::string getName() const
bool call(ServiceType &srvreq)
SmaccServiceClient(std::string service_name)
ros::ServiceClient client_
boost::optional< std::string > serviceName_
virtual void initialize() override