Go to the documentation of this file.
29 #ifndef ROSCPP_SERVICE_CLIENT_OPTIONS_H
30 #define ROSCPP_SERVICE_CLIENT_OPTIONS_H
32 #include "ros/forwards.h"
34 #include "ros/service_traits.h"
59 , persistent(_persistent)
72 template <
class MReq,
class MRes>
73 void init(
const std::string& _service,
bool _persistent,
const M_string& _header)
75 namespace st = service_traits;
78 md5sum = st::md5sum<MReq>();
79 persistent = _persistent;
90 template <
class Service>
91 void init(
const std::string& _service,
bool _persistent,
const M_string& _header)
93 namespace st = service_traits;
96 md5sum = st::md5sum<Service>();
97 persistent = _persistent;
const char * md5sum()
returns MD5Sum<M>::value();
Encapsulates all options available for creating a ServiceClient.
std::map< std::string, std::string > M_string
std::string service
Service to connect to.
std::string md5sum
Service md5sum.
ServiceClientOptions(const std::string &_service, const std::string &_md5sum, bool _persistent, const M_string &_header)
bool persistent
Whether or not the connection should persist.
void init(const std::string &_service, bool _persistent, const M_string &_header)
M_string header
Extra key/value pairs to add to the connection header.
std_msgs::Header * header(M &m)
returns Header<M>::pointer(m);
void init(const std::string &_service, bool _persistent, const M_string &_header)
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:10