Class ServiceServer

Class Documentation

class ServiceServer

Public Types

enum DIAGNOSTIC_FLAGS

Values:

enumerator DIAG_CONNECTION
enumerator DIAG_SERVINGS
enumerator DIAG_TIMING
enumerator DIAG_CLIENTS
enumerator DIAG_ALL
enumerator DIAG_MOST

Public Functions

inline ServiceServer()
inline ServiceServer(std::shared_ptr<ServiceServerImpl> &impl)
inline ServiceServer &operator=(const ServiceServer &other)
inline void resetStatistics()
inline const std::string &unmappedService() const
inline const ServiceServerStatistics &statistics() const
inline void setInstrumentPerClient(bool enable)
inline bool instrumentPerClient() const
inline std::vector<std::string> clientNames() const
inline ServiceServerStatistics clientStatistics(const std::string &name) const
inline void setLogCalls(bool enable)
inline bool logCalls() const
inline void appendDiagnostics(diagnostic_updater::DiagnosticStatusWrapper &status, const std::string &name, const int flags)

Public Static Functions

template<class S, class MReq, class MRes, class T>
static inline ServiceServer createService(rclcpp::Node &nh, const std::string &service, bool (T::* srv_func)(const MReq&, const MRes&), T *obj)