14 "implementation_id",
"Motor",
16 "description",
"Motor component",
18 "vendor",
"Noriaki Ando, AIST",
19 "category",
"example",
20 "activity_type",
"SPORADIC",
21 "kind",
"DataFlowComponent",
24 "lang_type",
"compile",
26 "conf.default.motor_id",
"0",
35 m_outOut(
"out", m_out)
111 std::cout <<
"Motor Received data: " <<
m_in.data << std::endl << std::endl;
virtual RTC::ReturnCode_t onInitialize()
Callback function to initialize.
InPort< TimedFloat > m_inIn
DataFlowComponentBase class.
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
Callback function to execute periodically.
OutPort< TimedLong > m_outOut
bool addOutPort(const char *name, OutPortBase &outport)
[local interface] Register DataOutPort
Motor(RTC::Manager *manager)
void update(void)
Update the values of configuration parameters (Active configuration set)
ExecutionContextHandle_t UniqueId
static const char * motor_spec[]
bool bindParameter(const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
Setup for configuration parameters.
ConfigAdmin m_configsets
Configuration Administrator Object.
Class represents a set of properties.
virtual bool isNew()
Check whether the data is newest.
virtual bool write(DataType &value)
Write data.
void MotorInit(RTC::Manager *manager)
bool addInPort(const char *name, InPortBase &inport)
[local interface] Register DataInPort
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
bool read()
Readout the value from DataPort.