Main Page
Classes
Files
File List
include
rtt_std_srvs
Empty.h
Go to the documentation of this file.
1
#ifndef RTT_STD_SRVS_EMPTY_H
2
#define RTT_STD_SRVS_EMPTY_H
3
4
#include <
rtt_roscomm/rtt_rosservice_proxy.h
>
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
();
17
typedef
RTT::OperationCaller<Signature>
ProxyOperationCallerType
;
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
();
25
typedef
RTT::OperationCaller<Signature>
ProxyOperationCallerType
;
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
ROSServiceServerOperationCallerWrapper< std_srvs::Empty, 1 >::call
static bool call(Callable &call, std_srvs::Empty::Request &, std_srvs::Empty::Response &)
Definition:
Empty.h:18
rtt_rosservice_proxy.h
ROSServiceServerOperationCallerWrapper< std_srvs::Empty, 2 >::Signature
void Signature()
Definition:
Empty.h:24
ROSServiceServerOperationCallerWrapper< std_srvs::Empty, 1 >::Signature
bool Signature()
Definition:
Empty.h:16
ROSServiceServerOperationCallerWrapper< std_srvs::Empty, 1 >::ProxyOperationCallerType
RTT::OperationCaller< Signature > ProxyOperationCallerType
Definition:
Empty.h:17
ROSServiceServerOperationCallerWrapper< std_srvs::Empty, 2 >::call
static bool call(Callable &call, std_srvs::Empty::Request &, std_srvs::Empty::Response &)
Definition:
Empty.h:26
ROSServiceServerOperationCallerWrapper< std_srvs::Empty, 2 >::ProxyOperationCallerType
RTT::OperationCaller< Signature > ProxyOperationCallerType
Definition:
Empty.h:25
RTT::OperationCaller
Empty.h
ROSServiceServerOperationCallerWrapper
rtt_std_srvs
Author(s):
autogenerated on Sat Jun 8 2019 18:06:19