16 "implementation_id",
"CaptureController",
17 "type_name",
"CaptureController",
18 "description",
"capture controller",
19 "version", HRPSYS_PACKAGE_VERSION,
21 "category",
"example",
22 "activity_type",
"DataFlowComponent",
25 "lang_type",
"compile",
27 "conf.default.frameRate",
"1",
28 "conf.default.initialMode",
"sleep",
37 m_imageIn(
"imageIn", m_image),
38 m_imageOut(
"imageOut", m_image),
39 m_CameraCaptureServicePort(
"CameraCaptureService"),
40 m_CameraCaptureService(this),
54 std::cout <<
m_profile.instance_name <<
": onInitialize()" << std::endl;
110 std::cout <<
m_profile.instance_name<<
": onActivated(" << ec_id <<
")" << std::endl;
124 std::cout <<
m_profile.instance_name<<
": onDeactivated(" << ec_id <<
")" << std::endl;
132 double dt = (double)(tNew -
m_tOld);
201 RTC::Create<CaptureController>,
202 RTC::Delete<CaptureController>);
ComponentProfile m_profile
png_infop png_charpp int png_charpp profile
InPort< Img::TimedCameraImage > m_imageIn
void CaptureControllerInit(RTC::Manager *manager)
CameraCaptureService_impl m_CameraCaptureService
static const char * capturecontroller_spec[]
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
RTC::CorbaPort m_CameraCaptureServicePort
coil::Properties & getProperties()
bool addOutPort(const char *name, OutPortBase &outport)
int gettimeofday(struct timeval *tv, struct timezone *tz)
std::string m_initialMode
ExecutionContextHandle_t UniqueId
bool bindParameter(const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
OutPort< Img::TimedCameraImage > m_imageOut
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
CaptureController(RTC::Manager *manager)
Constructor.
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onInitialize()
bool addPort(PortBase &port)
virtual bool write(DataType &value)
virtual ~CaptureController()
Destructor.
bool addInPort(const char *name, InPortBase &inport)
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
bool registerProvider(const char *instance_name, const char *type_name, PortableServer::RefCountServantBase &provider)