#include <service_server.h>
Public Types | |
enum | DIAGNOSTIC_FLAGS { DIAG_CONNECTION = 1 << 0, DIAG_SERVINGS = 1 << 1, DIAG_TIMING = 1 << 2, DIAG_CLIENTS = 1 << 3, DIAG_ALL = ~0, DIAG_MOST = DIAG_ALL ^ DIAG_CONNECTION } |
Public Member Functions | |
void | appendDiagnostics (diagnostic_updater::DiagnosticStatusWrapper &status, const std::string &name, const int flags) |
std::vector< std::string > | clientNames () const |
ServiceServerStatistics | clientStatistics (const std::string &name) const |
bool | instrumentPerClient () const |
bool | logCalls () const |
const std::string & | mappedService () const |
ServiceServer & | operator= (const ServiceServer &other) |
void | resetStatistics () |
ServiceServer () | |
template<class MReq , class MRes , class T > | |
ServiceServer (ros::NodeHandle &nh, const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj) | |
template<class MReq , class MRes , class T > | |
ServiceServer (ros::NodeHandle &nh, const std::string &service, bool(T::*srv_func)(ros::ServiceEvent< MReq, MRes > &), T *obj) | |
template<class MReq , class MRes , class T > | |
ServiceServer (ros::NodeHandle &nh, const std::string &service, bool(T::*srv_func)(const std::string &, const MReq &, MRes &), T *obj) | |
void | setInstrumentPerClient (bool enable) |
void | setLogCalls (bool enable) |
const ServiceServerStatistics & | statistics () const |
const std::string & | unmappedService () const |
Private Attributes | |
boost::shared_ptr < ServiceServerImpl > | impl_ |
Definition at line 39 of file service_server.h.
Definition at line 95 of file service_server.h.
swri::ServiceServer::ServiceServer | ( | ) | [inline] |
Definition at line 122 of file service_server.h.
swri::ServiceServer::ServiceServer | ( | ros::NodeHandle & | nh, |
const std::string & | service, | ||
bool(T::*)(MReq &, MRes &) | srv_func, | ||
T * | obj | ||
) | [inline] |
Definition at line 131 of file service_server.h.
swri::ServiceServer::ServiceServer | ( | ros::NodeHandle & | nh, |
const std::string & | service, | ||
bool(T::*)(ros::ServiceEvent< MReq, MRes > &) | srv_func, | ||
T * | obj | ||
) | [inline] |
Definition at line 143 of file service_server.h.
swri::ServiceServer::ServiceServer | ( | ros::NodeHandle & | nh, |
const std::string & | service, | ||
bool(T::*)(const std::string &, const MReq &, MRes &) | srv_func, | ||
T * | obj | ||
) | [inline] |
Definition at line 155 of file service_server.h.
void swri::ServiceServer::appendDiagnostics | ( | diagnostic_updater::DiagnosticStatusWrapper & | status, |
const std::string & | name, | ||
const int | flags | ||
) | [inline] |
Definition at line 238 of file service_server.h.
std::vector< std::string > swri::ServiceServer::clientNames | ( | ) | const [inline] |
Definition at line 213 of file service_server.h.
ServiceServerStatistics swri::ServiceServer::clientStatistics | ( | const std::string & | name | ) | const [inline] |
Definition at line 219 of file service_server.h.
bool swri::ServiceServer::instrumentPerClient | ( | ) | const [inline] |
Definition at line 207 of file service_server.h.
bool swri::ServiceServer::logCalls | ( | ) | const [inline] |
Definition at line 232 of file service_server.h.
const std::string & swri::ServiceServer::mappedService | ( | ) | const [inline] |
Definition at line 189 of file service_server.h.
ServiceServer & swri::ServiceServer::operator= | ( | const ServiceServer & | other | ) | [inline] |
Definition at line 166 of file service_server.h.
void swri::ServiceServer::resetStatistics | ( | ) | [inline] |
Definition at line 177 of file service_server.h.
void swri::ServiceServer::setInstrumentPerClient | ( | bool | enable | ) | [inline] |
Definition at line 201 of file service_server.h.
void swri::ServiceServer::setLogCalls | ( | bool | enable | ) | [inline] |
Definition at line 226 of file service_server.h.
const ServiceServerStatistics & swri::ServiceServer::statistics | ( | ) | const [inline] |
Definition at line 195 of file service_server.h.
const std::string & swri::ServiceServer::unmappedService | ( | ) | const [inline] |
Definition at line 183 of file service_server.h.
boost::shared_ptr<ServiceServerImpl> swri::ServiceServer::impl_ [private] |
Definition at line 42 of file service_server.h.