// -*- C++ -*- /*! * @file Flip.h * @brief Flip component * @date $Date$ * * $Id$ */ #ifndef FLIP_H #define FLIP_H #include #include #include // Service implementation headers // // // Service Consumer stub headers // // // Service Consumer stub headers // // using namespace RTC; #include #include #include #include #include //OpenCV 用インクルードファイルのインクルード #include #include #include /*! * @class Flip * @brief Flip component * */ class Flip : public RTC::DataFlowComponentBase { public: /*! * @brief constructor * @param manager Maneger Object */ Flip(RTC::Manager* manager); /*! * @brief destructor */ ~Flip(); // // // // /*** * * The initialize action (on CREATED->ALIVE transition) * formaer rtc_init_entry() * * @return RTC::ReturnCode_t * * */ virtual RTC::ReturnCode_t onInitialize(); /*** * * The finalize action (on ALIVE->END transition) * formaer rtc_exiting_entry() * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onFinalize(); /*** * * The startup action when ExecutionContext startup * former rtc_starting_entry() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id); /*** * * The shutdown action when ExecutionContext stop * former rtc_stopping_entry() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id); /*** * * The activated action (Active state entry action) * former rtc_active_entry() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id); /*** * * The deactivated action (Active state exit action) * former rtc_active_exit() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id); /*** * * The execution action that is invoked periodically * former rtc_active_do() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id); /*** * * The aborting action when main logic error occurred. * former rtc_aborting_entry() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id); /*** * * The error action in ERROR state * former rtc_error_do() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id); /*** * * The reset action that is invoked resetting * This is same but different the former rtc_init_entry() * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id); /*** * * The state update action that is invoked after onExecute() action * no corresponding operation exists in OpenRTm-aist-0.2.0 * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id); /*** * * The action that is invoked when execution context's rate is changed * no corresponding operation exists in OpenRTm-aist-0.2.0 * * @param ec_id target ExecutionContext Id * * @return RTC::ReturnCode_t * * */ // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id); protected: // // // // // Configuration variable declaration // /*! * * - Name: flipMode * - DefaultValue: 0 */ int m_flipMode; // // DataInPort declaration // RTC::CameraImage m_originalImage; /*! */ InPort m_originalImageIn; // // DataOutPort declaration // RTC::CameraImage m_flippedImage; /*! */ OutPort m_flippedImageOut; // // CORBA Port declaration // // // Service declaration // // // Consumer declaration // // private: // IplImage* m_imageBuff; IplImage* m_flipImageBuff; // // // }; extern "C" { DLL_EXPORT void FlipInit(RTC::Manager* manager); }; #endif // FLIP_H