13 "implementation_id",
"Sensor",
14 "type_name",
"Sensor",
15 "description",
"Sensor component",
17 "vendor",
"Noriaki Ando, AIST",
18 "category",
"example",
19 "activity_type",
"SPORADIC",
20 "kind",
"DataFlowComponent",
23 "lang_type",
"compile",
33 m_outOut(
"out", m_out)
106 std::cout <<
"Sensor Received data: " <<
m_in.data << std::endl;
154 RTC::Delete<Sensor>);
virtual RTC::ReturnCode_t onInitialize()
Callback function to initialize.
DataFlowComponentBase class.
InPort< TimedLong > m_inIn
OutPort< TimedFloat > m_outOut
bool addOutPort(const char *name, OutPortBase &outport)
[local interface] Register DataOutPort
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
Callback function to execute periodically.
Sensor(RTC::Manager *manager)
static const char * sensor_spec[]
ExecutionContextHandle_t UniqueId
void SensorInit(RTC::Manager *manager)
Class represents a set of properties.
virtual bool isNew()
Check whether the data is newest.
virtual bool write(DataType &value)
Write data.
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.