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


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