Empty.h
Go to the documentation of this file.
1 #ifndef RTT_STD_SRVS_EMPTY_H
2 #define RTT_STD_SRVS_EMPTY_H
3 
5 #include <std_srvs/Empty.h>
6 
7 // Specialized implementations of ROSServiceServerOperationCaller for std_srvs/Empty.
8 //
9 // Accepted signatures:
10 // - bool empty(std_srvs::Empty::Request&, std_srvs::Empty::Response&)
11 // - bool empty()
12 // - void empty()
13 //
14 
15 template<> struct ROSServiceServerOperationCallerWrapper<std_srvs::Empty,1> {
16  typedef bool Signature();
18  template <typename Callable> static bool call(Callable& call, std_srvs::Empty::Request&, std_srvs::Empty::Response&) {
19  return call();
20  }
21 };
22 
23 template<> struct ROSServiceServerOperationCallerWrapper<std_srvs::Empty,2> {
24  typedef void Signature();
26  template <typename Callable> static bool call(Callable& call, std_srvs::Empty::Request&, std_srvs::Empty::Response&) {
27  call();
28  return true;
29  }
30 };
31 
32 #endif // RTT_STD_SRVS_EMPTY_H
static bool call(Callable &call, std_srvs::Empty::Request &, std_srvs::Empty::Response &)
Definition: Empty.h:18
RTT::OperationCaller< Signature > ProxyOperationCallerType
Definition: Empty.h:17
static bool call(Callable &call, std_srvs::Empty::Request &, std_srvs::Empty::Response &)
Definition: Empty.h:26
RTT::OperationCaller< Signature > ProxyOperationCallerType
Definition: Empty.h:25


rtt_std_srvs
Author(s):
autogenerated on Sat Jun 8 2019 18:06:19