#include <service_manager.h>
Definition at line 55 of file service_manager.h.
◆ ServiceManager()
roswrap::ServiceManager::ServiceManager |
( |
| ) |
|
◆ ~ServiceManager()
roswrap::ServiceManager::~ServiceManager |
( |
| ) |
|
◆ advertiseService()
◆ createServiceServerLink()
Create a new client to the specified service. If a client to that service already exists, returns the existing one.
- Parameters
-
service | The service to connect to |
persistent | Whether to keep this connection alive for more than one service call |
request_md5sum | The md5sum of the request message |
response_md5sum | The md5sum of the response message |
- Returns
- Shared pointer to the ServiceServerLink, empty shared pointer if none is found.
◆ instance()
◆ isServiceAdvertised()
bool roswrap::ServiceManager::isServiceAdvertised |
( |
const std::string & |
serv_name | ) |
|
|
private |
◆ isShuttingDown()
bool roswrap::ServiceManager::isShuttingDown |
( |
| ) |
|
|
inlineprivate |
◆ lookupService()
bool roswrap::ServiceManager::lookupService |
( |
const std::string & |
name, |
|
|
std::string & |
serv_host, |
|
|
uint32_t & |
serv_port |
|
) |
| |
Lookup the host/port of a service.
- Parameters
-
name | The name of the service |
serv_host | OUT – The host of the service |
serv_port | OUT – The port of the service |
◆ lookupServicePublication()
Lookup an advertised service.
This method iterates over advertised_services, looking for one with name matching the given topic name. The advertised_services_mutex is locked during this search. This method is only used internally.
- Parameters
-
service | The service name to look for. |
- Returns
- Pointer to the matching ServicePublication, NULL if none is found.
◆ removeServiceServerLink()
Remove the specified service client from our list.
- Parameters
-
client | The client to remove |
◆ shutdown()
void roswrap::ServiceManager::shutdown |
( |
| ) |
|
◆ start()
void roswrap::ServiceManager::start |
( |
| ) |
|
◆ unadvertiseService()
bool roswrap::ServiceManager::unadvertiseService |
( |
const std::string & |
serv_name | ) |
|
Unadvertise a service.
This call unadvertises a service, which must have been previously advertised, using advertiseService().
After this call completes, it is guaranteed that no further callbacks will be invoked for this service.
This method can be safely called from within a service callback.
- Parameters
-
serv_name | The service to be unadvertised. |
- Returns
- true on successful unadvertisement, false otherwise.
◆ unregisterService()
bool roswrap::ServiceManager::unregisterService |
( |
const std::string & |
service | ) |
|
|
private |
◆ connection_manager_
◆ poll_manager_
◆ service_publications_
◆ service_publications_mutex_
std::mutex roswrap::ServiceManager::service_publications_mutex_ |
|
private |
◆ service_server_links_
◆ service_server_links_mutex_
std::mutex roswrap::ServiceManager::service_server_links_mutex_ |
|
private |
◆ shutting_down_
volatile bool roswrap::ServiceManager::shutting_down_ |
|
private |
◆ shutting_down_mutex_
boost::recursive_mutex roswrap::ServiceManager::shutting_down_mutex_ |
|
private |
◆ xmlrpc_manager_
The documentation for this class was generated from the following file: