#include <rtt_rosservice_registry_service.h>
Public Member Functions | |
ROSServiceProxyFactoryBase * | getServiceFactory (const std::string &service_type) |
bool | hasServiceFactory (const std::string &service_type) |
void | listSrvs () |
bool | registerServiceFactory (ROSServiceProxyFactoryBase *factory) |
Register a ROS service proxy factory. | |
Static Public Member Functions | |
static ROSServiceRegistryServicePtr | Instance () |
static void | Release () |
Private Member Functions | |
ROSServiceRegistryService (RTT::TaskContext *owner) | |
Static Private Attributes | |
static std::map< std::string, boost::shared_ptr < ROSServiceProxyFactoryBase > > | factories_ |
ROS service proxy factories. | |
static RTT::os::MutexRecursive | factory_lock_ |
static ROSServiceRegistryServicePtr | s_instance_ |
The singleton instance. |
Definition at line 11 of file rtt_rosservice_registry_service.h.
ROSServiceRegistryService::ROSServiceRegistryService | ( | RTT::TaskContext * | owner | ) | [private] |
Instantiates this service.
owner | The owner or null in case of global. |
Definition at line 25 of file rtt_rosservice_registry_service.cpp.
ROSServiceProxyFactoryBase * ROSServiceRegistryService::getServiceFactory | ( | const std::string & | service_type | ) |
Definition at line 70 of file rtt_rosservice_registry_service.cpp.
bool ROSServiceRegistryService::hasServiceFactory | ( | const std::string & | service_type | ) |
Definition at line 64 of file rtt_rosservice_registry_service.cpp.
Definition at line 11 of file rtt_rosservice_registry_service.cpp.
void ROSServiceRegistryService::listSrvs | ( | ) |
Definition at line 82 of file rtt_rosservice_registry_service.cpp.
bool ROSServiceRegistryService::registerServiceFactory | ( | ROSServiceProxyFactoryBase * | factory | ) |
Register a ROS service proxy factory.
This enables the ROSServiceRegistryService to construct ROS service clients and servers from a string name.
Definition at line 40 of file rtt_rosservice_registry_service.cpp.
void ROSServiceRegistryService::Release | ( | ) | [static] |
Definition at line 20 of file rtt_rosservice_registry_service.cpp.
std::map< std::string, boost::shared_ptr< ROSServiceProxyFactoryBase > > ROSServiceRegistryService::factories_ [static, private] |
ROS service proxy factories.
Definition at line 38 of file rtt_rosservice_registry_service.h.
RTT::os::MutexRecursive ROSServiceRegistryService::factory_lock_ [static, private] |
Definition at line 39 of file rtt_rosservice_registry_service.h.
ROSServiceRegistryServicePtr ROSServiceRegistryService::s_instance_ [static, private] |
The singleton instance.
Definition at line 42 of file rtt_rosservice_registry_service.h.