#include <service_manager.h>
Definition at line 54 of file service_manager.h.
◆ ServiceManager()
ros::ServiceManager::ServiceManager |
( |
| ) |
|
◆ ~ServiceManager()
ros::ServiceManager::~ServiceManager |
( |
| ) |
|
◆ advertiseService()
◆ createServiceServerLink()
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.
◆ instance()
◆ isServiceAdvertised()
bool ros::ServiceManager::isServiceAdvertised |
( |
const std::string & |
serv_name | ) |
|
|
private |
◆ isShuttingDown()
bool ros::ServiceManager::isShuttingDown |
( |
| ) |
|
|
inlineprivate |
◆ lookupService()
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.
◆ 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.
Definition at line 219 of file service_manager.cpp.
◆ removeServiceServerLink()
Remove the specified service client from our list.
- Parameters
-
client | The client to remove |
Definition at line 280 of file service_manager.cpp.
◆ shutdown()
void ros::ServiceManager::shutdown |
( |
| ) |
|
◆ start()
void ros::ServiceManager::start |
( |
| ) |
|
◆ unadvertiseService()
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.
◆ unregisterService()
bool ros::ServiceManager::unregisterService |
( |
const std::string & |
service | ) |
|
|
private |
◆ connection_manager_
◆ poll_manager_
◆ service_publications_
◆ service_publications_mutex_
boost::mutex ros::ServiceManager::service_publications_mutex_ |
|
private |
◆ service_server_links_
◆ service_server_links_mutex_
boost::mutex ros::ServiceManager::service_server_links_mutex_ |
|
private |
◆ shutting_down_
volatile bool ros::ServiceManager::shutting_down_ |
|
private |
◆ shutting_down_mutex_
boost::recursive_mutex ros::ServiceManager::shutting_down_mutex_ |
|
private |
◆ xmlrpc_manager_
The documentation for this class was generated from the following files:
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:36