16 "implementation_id",
"ConsoleOut",
17 "type_name",
"ConsoleOut",
18 "description",
"Console output component",
20 "vendor",
"Noriaki Ando, AIST",
21 "category",
"example",
22 "activity_type",
"DataFlowComponent",
25 "lang_type",
"compile",
69 std::cout <<
"Received: " <<
m_in.data << std::endl;
70 std::cout <<
"TimeStamp: " <<
m_in.tm.sec <<
"[s] ";
71 std::cout <<
m_in.tm.nsec <<
"[ns]" << std::endl;
86 RTC::Create<ConsoleOut>,
87 RTC::Delete<ConsoleOut>);
static const char * consoleout_spec[]
void ConsoleOutInit(RTC::Manager *manager)
DataFlowComponentBase class.
ExecutionContextHandle_t UniqueId
virtual RTC::ReturnCode_t onInitialize()
Callback function to initialize.
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
Callback function to execute periodically.
Class represents a set of properties.
ConsoleOut(RTC::Manager *manager)
virtual bool isNew()
Check whether the data is newest.
bool addInPort(const char *name, InPortBase &inport)
[local interface] Register DataInPort
InPort< TimedLong > m_inIn
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
bool read()
Readout the value from DataPort.
int usleep(useconds_t usec)
Stop a processing at specified micro second time.