Controller.h
Go to the documentation of this file.
1 // -*- C++ -*-
7 #ifndef CONTROLLER_H
8 #define CONTROLLER_H
9 
10 #include <rtm/idl/BasicDataTypeSkel.h>
11 #include <rtm/Manager.h>
13 #include <rtm/CorbaPort.h>
14 #include <rtm/DataInPort.h>
15 #include <rtm/DataOutPort.h>
16 
17 // Service implementation headers
18 // <rtc-template block="service_impl_h">
19 
20 // </rtc-template>
21 
22 // Service Consumer stub headers
23 // <rtc-template block="consumer_stub_h">
24 
25 // </rtc-template>
26 
27 using namespace RTC;
28 
30 {
31  public:
33  ~Controller();
34 
35  // The initialize action (on CREATED->ALIVE transition)
36  // formaer rtc_init_entry()
37  virtual RTC::ReturnCode_t onInitialize();
38 
39  // The finalize action (on ALIVE->END transition)
40  // formaer rtc_exiting_entry()
41  // virtual RTC::ReturnCode_t onFinalize();
42 
43  // The startup action when ExecutionContext startup
44  // former rtc_starting_entry()
45  // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
46 
47  // The shutdown action when ExecutionContext stop
48  // former rtc_stopping_entry()
49  // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
50 
51  // The activated action (Active state entry action)
52  // former rtc_active_entry()
53  // virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
54 
55  // The deactivated action (Active state exit action)
56  // former rtc_active_exit()
57  // virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
58 
59  // The execution action that is invoked periodically
60  // former rtc_active_do()
61  virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
62 
63  // The aborting action when main logic error occurred.
64  // former rtc_aborting_entry()
65  // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
66 
67  // The error action in ERROR state
68  // former rtc_error_do()
69  // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
70 
71  // The reset action that is invoked resetting
72  // This is same but different the former rtc_init_entry()
73  // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
74 
75  // The state update action that is invoked after onExecute() action
76  // no corresponding operation exists in OpenRTm-aist-0.2.0
77  // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
78 
79  // The action that is invoked when execution context's rate is changed
80  // no corresponding operation exists in OpenRTm-aist-0.2.0
81  // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
82 
83 
84  protected:
85  // Configuration variable declaration
86  // <rtc-template block="config_declare">
87 
88  // </rtc-template>
89 
90  // DataInPort declaration
91  // <rtc-template block="inport_declare">
92  TimedFloat m_in;
94 
95  // </rtc-template>
96 
97  // DataOutPort declaration
98  // <rtc-template block="outport_declare">
99  TimedFloat m_out;
101 
102  // </rtc-template>
103 
104  // CORBA Port declaration
105  // <rtc-template block="corbaport_declare">
106 
107  // </rtc-template>
108 
109  // Service declaration
110  // <rtc-template block="service_declare">
111 
112  // </rtc-template>
113 
114  // Consumer declaration
115  // <rtc-template block="consumer_declare">
116 
117  // </rtc-template>
118 
119  private:
120 
121 };
122 
123 
124 extern "C"
125 {
127 };
128 
129 #endif // CONTROLLER_H
130 
RT-Component.
DataFlowComponentBase class.
ReturnCode_t
Definition: doil.h:53
TimedFloat m_out
Definition: Controller.h:99
Manager class.
Definition: Manager.h:80
InPort< TimedFloat > m_inIn
Definition: Controller.h:93
Base class of OutPort.
CorbaPort class.
RTComponent manager class.
ExecutionContextHandle_t UniqueId
Base class of InPort.
#define DLL_EXPORT
Definition: PluginC.cpp:8
OutPort< TimedFloat > m_outOut
Definition: Controller.h:100
TimedFloat m_in
Definition: Controller.h:92
DLL_EXPORT void ControllerInit(RTC::Manager *manager)
Definition: Controller.cpp:148


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:58