#include <service_manager.h>
Definition at line 54 of file service_manager.h.
ros::ServiceManager::ServiceManager |
( |
| ) |
|
ros::ServiceManager::~ServiceManager |
( |
| ) |
|
ServiceServerLinkPtr ros::ServiceManager::createServiceServerLink |
( |
const std::string & |
service, |
|
|
bool |
persistent, |
|
|
const std::string & |
request_md5sum, |
|
|
const std::string & |
response_md5sum, |
|
|
const M_string & |
header_values |
|
) |
| |
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.
Definition at line 235 of file service_manager.cpp.
bool ros::ServiceManager::isServiceAdvertised |
( |
const std::string & |
serv_name | ) |
|
|
private |
bool ros::ServiceManager::isShuttingDown |
( |
| ) |
|
|
inlineprivate |
bool ros::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 |
Definition at line 304 of file service_manager.cpp.
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.
Definition at line 219 of file service_manager.cpp.
Remove the specified service client from our list.
- Parameters
-
client | The client to remove |
Definition at line 280 of file service_manager.cpp.
void ros::ServiceManager::shutdown |
( |
| ) |
|
void ros::ServiceManager::start |
( |
| ) |
|
bool ros::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.
Definition at line 158 of file service_manager.cpp.
bool ros::ServiceManager::unregisterService |
( |
const std::string & |
service | ) |
|
|
private |
boost::mutex ros::ServiceManager::service_publications_mutex_ |
|
private |
boost::mutex ros::ServiceManager::service_server_links_mutex_ |
|
private |
volatile bool ros::ServiceManager::shutting_down_ |
|
private |
boost::recursive_mutex ros::ServiceManager::shutting_down_mutex_ |
|
private |
The documentation for this class was generated from the following files:
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:27