SMACC
|
#include <smacc_service_server_client.h>
Public Member Functions | |
SmaccServiceServerClient () | |
SmaccServiceServerClient (std::string service_name) | |
virtual | ~SmaccServiceServerClient () |
template<typename T > | |
boost::signals2::connection | onServiceRequestReceived (void(T::*callback)(TServiceRequest &, std::shared_ptr< TServiceResponse >), T *object) |
virtual void | initialize () override |
Public Member Functions inherited from smacc::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | initialize () |
virtual std::string | getName () const |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
virtual smacc::introspection::TypeInfo::Ptr | getType () |
ISmaccStateMachine * | getStateMachine () |
template<typename TSmaccSignal , typename T > | |
void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
Public Attributes | |
boost::optional< std::string > | serviceName_ |
smacc::SmaccSignal< void(TServiceRequest &, std::shared_ptr< TServiceResponse >)> | onServiceRequestReceived_ |
Protected Attributes | |
ros::NodeHandle | nh_ |
Protected Attributes inherited from smacc::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > | components_ |
Private Types | |
using | TServiceRequest = typename TService::Request |
using | TServiceResponse = typename TService::Response |
Private Member Functions | |
bool | serviceCallback (TServiceRequest &req, TServiceResponse &res) |
Private Attributes | |
ros::ServiceServer | server_ |
bool | initialized_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc::ISmaccClient | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
void | setStateMachine (ISmaccStateMachine *stateMachine) |
void | setOrthogonal (ISmaccOrthogonal *orthogonal) |
Definition at line 12 of file smacc_service_server_client.h.
|
private |
Definition at line 13 of file smacc_service_server_client.h.
|
private |
Definition at line 14 of file smacc_service_server_client.h.
|
inline |
Definition at line 18 of file smacc_service_server_client.h.
References smacc::client_bases::SmaccServiceServerClient< TService >::initialized_.
|
inline |
Definition at line 19 of file smacc_service_server_client.h.
References smacc::client_bases::SmaccServiceServerClient< TService >::initialized_, and smacc::client_bases::SmaccServiceServerClient< TService >::serviceName_.
|
inlinevirtual |
Definition at line 24 of file smacc_service_server_client.h.
References smacc::client_bases::SmaccServiceServerClient< TService >::server_.
|
inlineoverridevirtual |
Reimplemented from smacc::ISmaccClient.
Definition at line 37 of file smacc_service_server_client.h.
References smacc::ISmaccClient::getName(), smacc::client_bases::SmaccServiceServerClient< TService >::initialized_, smacc::client_bases::SmaccServiceServerClient< TService >::nh_, smacc::client_bases::SmaccServiceServerClient< TService >::server_, and smacc::client_bases::SmaccServiceServerClient< TService >::serviceName_.
|
inline |
Definition at line 30 of file smacc_service_server_client.h.
References smacc::ISmaccStateMachine::createSignalConnection(), smacc::ISmaccClient::getStateMachine(), and smacc::client_bases::SmaccServiceServerClient< TService >::onServiceRequestReceived_.
|
inlineprivate |
Definition at line 57 of file smacc_service_server_client.h.
References smacc::client_bases::SmaccServiceServerClient< TService >::onServiceRequestReceived_.
|
private |
Definition at line 65 of file smacc_service_server_client.h.
Referenced by smacc::client_bases::SmaccServiceServerClient< TService >::initialize(), and smacc::client_bases::SmaccServiceServerClient< TService >::SmaccServiceServerClient().
|
protected |
Definition at line 54 of file smacc_service_server_client.h.
Referenced by smacc::client_bases::SmaccServiceServerClient< TService >::initialize().
smacc::SmaccSignal<void(TServiceRequest&, std::shared_ptr<TServiceResponse>)> smacc::client_bases::SmaccServiceServerClient< TService >::onServiceRequestReceived_ |
Definition at line 27 of file smacc_service_server_client.h.
Referenced by smacc::client_bases::SmaccServiceServerClient< TService >::onServiceRequestReceived(), and smacc::client_bases::SmaccServiceServerClient< TService >::serviceCallback().
|
private |
Definition at line 64 of file smacc_service_server_client.h.
Referenced by smacc::client_bases::SmaccServiceServerClient< TService >::initialize(), and smacc::client_bases::SmaccServiceServerClient< TService >::~SmaccServiceServerClient().
boost::optional<std::string> smacc::client_bases::SmaccServiceServerClient< TService >::serviceName_ |
Definition at line 17 of file smacc_service_server_client.h.
Referenced by smacc::client_bases::SmaccServiceServerClient< TService >::initialize(), and smacc::client_bases::SmaccServiceServerClient< TService >::SmaccServiceServerClient().