RangeDataViewer.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef NULL_COMPONENT_H
11 #define NULL_COMPONENT_H
12 
13 #include <rtm/idl/BasicDataType.hh>
14 #include <rtm/idl/InterfaceDataTypes.hh>
15 #include <rtm/Manager.h>
16 #include <rtm/DataFlowComponentBase.h>
17 #include <rtm/CorbaPort.h>
18 #include <rtm/DataInPort.h>
19 #include <rtm/DataOutPort.h>
20 #include <rtm/idl/BasicDataTypeSkel.h>
21 #include <rtm/idl/InterfaceDataTypesSkel.h>
22 #include <cv.h>
23 #include <highgui.h>
24 
25 // Service implementation headers
26 // <rtc-template block="service_impl_h">
27 
28 // </rtc-template>
29 
30 // Service Consumer stub headers
31 // <rtc-template block="consumer_stub_h">
32 
33 // </rtc-template>
34 
35 using namespace RTC;
36 
42 {
43  public:
52  virtual ~RangeDataViewer();
53 
54  // The initialize action (on CREATED->ALIVE transition)
55  // formaer rtc_init_entry()
56  virtual RTC::ReturnCode_t onInitialize();
57 
58  // The finalize action (on ALIVE->END transition)
59  // formaer rtc_exiting_entry()
60  // virtual RTC::ReturnCode_t onFinalize();
61 
62  // The startup action when ExecutionContext startup
63  // former rtc_starting_entry()
64  // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
65 
66  // The shutdown action when ExecutionContext stop
67  // former rtc_stopping_entry()
68  // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
69 
70  // The activated action (Active state entry action)
71  // former rtc_active_entry()
72  virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
73 
74  // The deactivated action (Active state exit action)
75  // former rtc_active_exit()
76  virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
77 
78  // The execution action that is invoked periodically
79  // former rtc_active_do()
80  virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
81 
82  // The aborting action when main logic error occurred.
83  // former rtc_aborting_entry()
84  // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
85 
86  // The error action in ERROR state
87  // former rtc_error_do()
88  // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
89 
90  // The reset action that is invoked resetting
91  // This is same but different the former rtc_init_entry()
92  // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
93 
94  // The state update action that is invoked after onExecute() action
95  // no corresponding operation exists in OpenRTm-aist-0.2.0
96  // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
97 
98  // The action that is invoked when execution context's rate is changed
99  // no corresponding operation exists in OpenRTm-aist-0.2.0
100  // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
101 
102 
103  protected:
104  // Configuration variable declaration
105  // <rtc-template block="config_declare">
106 
107  // </rtc-template>
108 
109  RangeData m_range;
110 
111  // DataInPort declaration
112  // <rtc-template block="inport_declare">
114 
115  // </rtc-template>
116 
117  // DataOutPort declaration
118  // <rtc-template block="outport_declare">
119 
120  // </rtc-template>
121 
122  // CORBA Port declaration
123  // <rtc-template block="corbaport_declare">
124 
125  // </rtc-template>
126 
127  // Service declaration
128  // <rtc-template block="service_declare">
129 
130  // </rtc-template>
131 
132  // Consumer declaration
133  // <rtc-template block="consumer_declare">
134 
135  // </rtc-template>
136 
137  private:
138  IplImage* m_cvImage;
139  double m_maxRange;
140  int dummy;
141 };
142 
143 
144 extern "C"
145 {
147 };
148 
149 #endif // NULL_COMPONENT_H
ec_id
void RangeDataViewerInit(RTC::Manager *manager)
manager
ExecutionContextHandle_t UniqueId
sample RT component which has one data input port and one data output port
InPort< RangeData > m_rangeIn
IplImage * m_cvImage


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:50