USBCameraMonitor.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef USBCAMERAMONITOR_H
11 #define USBCAMERAMONITOR_H
12 
13 #include <rtm/Manager.h>
15 #include <rtm/CorbaPort.h>
16 #include <rtm/DataInPort.h>
17 #include <rtm/DataOutPort.h>
18 #include <rtm/idl/BasicDataTypeSkel.h>
19 #include <rtm/RingBuffer.h>
20 /* RTM-Win-110 modify 20070315 SEC)T.Shimoji */
21 #include <rtm/RTC.h>
22 
23 #include<cv.h>
24 #include<cxcore.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 
41 {
42 public:
45 
46  // The initialize action (on CREATED->ALIVE transition)
47  // formaer rtc_init_entry()
48  virtual RTC::ReturnCode_t onInitialize();
49 
50  // The finalize action (on ALIVE->END transition)
51  // formaer rtc_exiting_entry()
52  // virtual RTC::ReturnCode_t onFinalize();
53 
54  // The startup action when ExecutionContext startup
55  // former rtc_starting_entry()
56  // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
57 
58  // The shutdown action when ExecutionContext stop
59  // former rtc_stopping_entry()
60  // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
61 
62  // The activated action (Active state entry action)
63  // former rtc_active_entry()
64  virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
65 
66  // The deactivated action (Active state exit action)
67  // former rtc_active_exit()
68  virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
69 
70  // The execution action that is invoked periodically
71  // former rtc_active_do()
72  virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
73 
74  // The aborting action when main logic error occurred.
75  // former rtc_aborting_entry()
76  // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
77 
78  // The error action in ERROR state
79  // former rtc_error_do()
80  // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
81 
82  // The reset action that is invoked resetting
83  // This is same but different the former rtc_init_entry()
84  // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
85 
86  // The state update action that is invoked after onExecute() action
87  // no corresponding operation exists in OpenRTm-aist-0.2.0
88  // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
89 
90  // The action that is invoked when execution context's rate is changed
91  // no corresponding operation exists in OpenRTm-aist-0.2.0
92  // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
93 
94 
95 protected:
96  // DataInPort declaration
97  // <rtc-template block="inport_declare">
98  TimedOctetSeq m_in;
100  // </rtc-template>
101 
102 
103  // DataOutPort declaration
104  // <rtc-template block="outport_declare">
105 
106  // </rtc-template>
107 
108  // CORBA Port declaration
109  // <rtc-template block="corbaport_declare">
110 
111  // </rtc-template>
112 
113  // Service declaration
114  // <rtc-template block="service_declare">
115 
116  // </rtc-template>
117 
118  // Consumer declaration
119  // <rtc-template block="consumer_declare">
120 
121  // </rtc-template>
122 
123 private:
124  int dummy;
125  IplImage* m_img;
128 };
129 
130 
131 extern "C"
132 {
134 };
135 
136 #endif // USBCAMERAMONITOR_H
RT-Component.
Defautl Buffer class.
DataFlowComponentBase class.
ReturnCode_t
Definition: doil.h:53
Manager class.
Definition: Manager.h:80
Base class of OutPort.
CorbaPort class.
RTComponent manager class.
InPort< TimedOctetSeq > m_inIn
ExecutionContextHandle_t UniqueId
Base class of InPort.
#define DLL_EXPORT
Definition: PluginC.cpp:8
DLL_EXPORT void USBCameraMonitorInit(RTC::Manager *manager)
RTComponent header.
TimedOctetSeq m_in


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:56