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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:01