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",
105 std::cout <<
"Received: " <<
m_in.data << std::endl;
106 std::cout <<
"TimeStamp: " <<
m_in.tm.sec <<
"[s] ";
107 std::cout <<
m_in.tm.nsec <<
"[ns]" << std::endl;
123 RTC::Create<ConsoleOut>,
124 RTC::Delete<ConsoleOut>);
DataFlowComponentBase class.
static const char * consoleout_spec[]
ExecutionContextHandle_t UniqueId
void addConnectorListener(ConnectorListenerType callback_type, ConnectorListener *listener, bool autoclean=true)
Adding ConnectorListener type listener.
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
void addConnectorDataListener(ConnectorDataListenerType listener_type, ConnectorDataListener *listener, bool autoclean=true)
Adding BufferDataListener type listener.
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
void ConsoleOutInit(RTC::Manager *manager)
bool read()
Readout the value from DataPort.
int usleep(useconds_t usec)
Stop a processing at specified micro second time.