31template <
typename TService>
49 const std::shared_ptr<typename TService::Request>,
50 std::shared_ptr<typename TService::Response>)>
56 const std::shared_ptr<typename TService::Request>,
57 std::shared_ptr<typename TService::Response>),
72 "[" << this->
getName() <<
"] service server with no service name set. Skipping.");
77 getLogger(),
"[" << this->
getName() <<
"] Client Service: " << *serviceName_);
82 std::placeholders::_1, std::placeholders::_2));
91 const std::shared_ptr<typename TService::Request> req,
92 std::shared_ptr<typename TService::Response> res)
96 typename rclcpp::Service<TService>::SharedPtr
server_;
rclcpp::Node::SharedPtr getNode()
ISmaccStateMachine * getStateMachine()
virtual std::string getName() const
rclcpp::Logger getLogger()
boost::signals2::connection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)
typename TService::Response TServiceResponse
std::optional< std::string > serviceName_
typename TService::Request TServiceRequest
void serviceCallback(const std::shared_ptr< typename TService::Request > req, std::shared_ptr< typename TService::Response > res)
virtual ~SmaccServiceServerClient()
rclcpp::Service< TService >::SharedPtr server_
boost::signals2::connection onServiceRequestReceived(void(T::*callback)(const std::shared_ptr< typename TService::Request >, std::shared_ptr< typename TService::Response >), T *object)
smacc2::SmaccSignal< void(const std::shared_ptr< typename TService::Request >, std::shared_ptr< typename TService::Response >)> onServiceRequestReceived_
SmaccServiceServerClient()
void onInitialize() override
SmaccServiceServerClient(std::string service_name)