Main Page
Namespaces
Classes
Files
File List
File Members
include
rtt_roscomm
rosservice.h
Go to the documentation of this file.
1
#ifndef __RTT_ROSSERVICE_ROSSERVICE_H
2
#define __RTT_ROSSERVICE_ROSSERVICE_H
3
4
#include <
rtt/RTT.hpp
>
5
#include <
rtt/Property.hpp
>
6
7
namespace
rtt_roscomm
{
8
9
class
ROSService
:
public
RTT::ServiceRequester
10
{
11
public
:
12
ROSService
(
RTT::TaskContext
*owner) :
13
RTT
::
ServiceRequester
(
"rosservice"
,owner),
14
connect
(
"connect"
),
15
disconnect
(
"disconnect"
),
16
disconnectAll
(
"disconnectAll"
)
17
{
18
this->
addOperationCaller
(
connect
);
19
this->
addOperationCaller
(
disconnect
);
20
this->
addOperationCaller
(
disconnectAll
);
21
}
22
23
RTT::OperationCaller<bool(const std::string &, const std::string &, const std::string &)>
connect
;
24
RTT::OperationCaller<bool(const std::string &)>
disconnect
;
25
RTT::OperationCaller<void()>
disconnectAll
;
26
};
27
}
28
29
namespace
rtt_rosservice
{
30
using
rtt_roscomm::ROSService
;
// deprecated
31
}
32
33
#endif // ifndef __RTT_ROSSERVICE_ROSSERVICE_H
34
rtt_roscomm::ROSService::connect
RTT::OperationCaller< bool(const std::string &, const std::string &, const std::string &)> connect
Definition:
rosservice.h:23
rtt_rosservice
Definition:
rosservice.h:29
rtt_roscomm::ROSService::disconnectAll
RTT::OperationCaller< void()> disconnectAll
Definition:
rosservice.h:25
RTT::ServiceRequester::disconnect
virtual void disconnect()
RTT::OperationCaller< bool(const std::string &, const std::string &, const std::string &)>
Property.hpp
rtt_roscomm::ROSService::ROSService
ROSService(RTT::TaskContext *owner)
Definition:
rosservice.h:12
RTT::TaskContext
rtt_roscomm::ROSService::disconnect
RTT::OperationCaller< bool(const std::string &)> disconnect
Definition:
rosservice.h:24
RTT::ServiceRequester
RTT
rtt_roscomm
Definition:
rosservice.h:7
RTT.hpp
rtt_roscomm::ROSService
Definition:
rosservice.h:9
RTT::ServiceRequester::addOperationCaller
bool addOperationCaller(base::OperationCallerBaseInvoker &mbi)
rtt_roscomm
Author(s): Ruben Smits, Jonathan Bohren
autogenerated on Sat Jun 8 2019 18:05:17