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


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