Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sample
example
simulationEC
SampleSimulationEC.h
Go to the documentation of this file.
1
// -*- C++ -*-
10
#ifndef SAMPLESIMULATIONEC_H
11
#define SAMPLESIMULATIONEC_H
12
13
#include <rtm/idl/BasicDataType.hh>
14
#include <
rtm/Manager.h
>
15
#include <rtm/DataFlowComponentBase.h>
16
#include <
rtm/CorbaPort.h
>
17
#include <
rtm/DataInPort.h
>
18
#include <
rtm/DataOutPort.h
>
19
#include <rtm/idl/BasicDataTypeSkel.h>
20
21
// Service implementation headers
22
// <rtc-template block="service_impl_h">
23
24
// </rtc-template>
25
26
// Service Consumer stub headers
27
// <rtc-template block="consumer_stub_h">
28
29
// </rtc-template>
30
31
using namespace
RTC
;
32
38
class
SampleSimulationEC
39
:
public
RTC::DataFlowComponentBase
40
{
41
public
:
46
SampleSimulationEC
(
RTC::Manager
*
manager
);
47
51
~
SampleSimulationEC
();
52
53
// <rtc-template block="public_attribute">
54
55
// </rtc-template>
56
57
// <rtc-template block="public_operation">
58
59
// </rtc-template>
60
61
/***
62
*
63
* The initialize action (on CREATED->ALIVE transition)
64
* formaer rtc_init_entry()
65
*
66
* @return RTC::ReturnCode_t
67
*
68
*
69
*/
70
// virtual RTC::ReturnCode_t onInitialize();
71
72
/***
73
*
74
* The finalize action (on ALIVE->END transition)
75
* formaer rtc_exiting_entry()
76
*
77
* @return RTC::ReturnCode_t
78
*
79
*
80
*/
81
// virtual RTC::ReturnCode_t onFinalize();
82
83
/***
84
*
85
* The startup action when ExecutionContext startup
86
* former rtc_starting_entry()
87
*
88
* @param ec_id target ExecutionContext Id
89
*
90
* @return RTC::ReturnCode_t
91
*
92
*
93
*/
94
// virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
95
96
/***
97
*
98
* The shutdown action when ExecutionContext stop
99
* former rtc_stopping_entry()
100
*
101
* @param ec_id target ExecutionContext Id
102
*
103
* @return RTC::ReturnCode_t
104
*
105
*
106
*/
107
// virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
108
109
/***
110
*
111
* The activated action (Active state entry action)
112
* former rtc_active_entry()
113
*
114
* @param ec_id target ExecutionContext Id
115
*
116
* @return RTC::ReturnCode_t
117
*
118
*
119
*/
120
virtual
RTC::ReturnCode_t onActivated(
RTC::UniqueId
ec_id
);
121
122
/***
123
*
124
* The deactivated action (Active state exit action)
125
* former rtc_active_exit()
126
*
127
* @param ec_id target ExecutionContext Id
128
*
129
* @return RTC::ReturnCode_t
130
*
131
*
132
*/
133
// virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
134
135
/***
136
*
137
* The execution action that is invoked periodically
138
* former rtc_active_do()
139
*
140
* @param ec_id target ExecutionContext Id
141
*
142
* @return RTC::ReturnCode_t
143
*
144
*
145
*/
146
virtual
RTC::ReturnCode_t onExecute(
RTC::UniqueId
ec_id);
147
148
/***
149
*
150
* The aborting action when main logic error occurred.
151
* former rtc_aborting_entry()
152
*
153
* @param ec_id target ExecutionContext Id
154
*
155
* @return RTC::ReturnCode_t
156
*
157
*
158
*/
159
// virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
160
161
/***
162
*
163
* The error action in ERROR state
164
* former rtc_error_do()
165
*
166
* @param ec_id target ExecutionContext Id
167
*
168
* @return RTC::ReturnCode_t
169
*
170
*
171
*/
172
// virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
173
174
/***
175
*
176
* The reset action that is invoked resetting
177
* This is same but different the former rtc_init_entry()
178
*
179
* @param ec_id target ExecutionContext Id
180
*
181
* @return RTC::ReturnCode_t
182
*
183
*
184
*/
185
// virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
186
187
/***
188
*
189
* The state update action that is invoked after onExecute() action
190
* no corresponding operation exists in OpenRTm-aist-0.2.0
191
*
192
* @param ec_id target ExecutionContext Id
193
*
194
* @return RTC::ReturnCode_t
195
*
196
*
197
*/
198
// virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
199
200
/***
201
*
202
* The action that is invoked when execution context's rate is changed
203
* no corresponding operation exists in OpenRTm-aist-0.2.0
204
*
205
* @param ec_id target ExecutionContext Id
206
*
207
* @return RTC::ReturnCode_t
208
*
209
*
210
*/
211
// virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
212
213
214
protected
:
215
// <rtc-template block="protected_attribute">
216
217
// </rtc-template>
218
219
// <rtc-template block="protected_operation">
220
221
// </rtc-template>
222
223
// DataInPort declaration
224
// <rtc-template block="inport_declare">
225
226
// </rtc-template>
227
228
229
// DataOutPort declaration
230
// <rtc-template block="outport_declare">
231
232
// </rtc-template>
233
234
// CORBA Port declaration
235
// <rtc-template block="corbaport_declare">
236
237
// </rtc-template>
238
239
// Service declaration
240
// <rtc-template block="service_declare">
241
242
// </rtc-template>
243
244
// Consumer declaration
245
// <rtc-template block="consumer_declare">
246
247
// </rtc-template>
248
249
private
:
250
// <rtc-template block="private_attribute">
251
252
// </rtc-template>
253
254
// <rtc-template block="private_operation">
255
256
// </rtc-template>
257
int
i
;
258
259
};
260
261
262
extern
"C"
263
{
264
DLL_EXPORT
void
SampleSimulationECInit
(
RTC::Manager
*
manager
);
265
};
266
267
#endif // SAMPLESIMULATIONEC_H
ec_id
ec_id
SampleSimulationEC::i
int i
Definition:
SampleSimulationEC.h:257
RTC
RTC::Manager
RTC::DataFlowComponentBase
SampleSimulationECInit
DLL_EXPORT void SampleSimulationECInit(RTC::Manager *manager)
Definition:
SampleSimulationEC.cpp:157
manager
manager
DataOutPort.h
CorbaPort.h
Manager.h
SampleSimulationEC
SampleSimulationEC.
Definition:
SampleSimulationEC.h:38
RTC::UniqueId
ExecutionContextHandle_t UniqueId
DataInPort.h
DLL_EXPORT
#define DLL_EXPORT
Definition:
bush_customizer.cpp:20
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:40