13 "implementation_id",
"RTSample",
14 "type_name",
"RTSample",
15 "description",
"Realtime periodic execution example component",
17 "vendor",
"Noriaki Ando, AIST",
18 "category",
"example",
19 "activity_type",
"PERIODIC",
20 "kind",
"DataFlowComponent",
23 "lang_type",
"compile",
93 double tm_max, tm_min, tm_mean, tm_stddev;
95 std::cout <<
"max: " << tm_max * 1000 <<
" [ms]" << std::endl;
96 std::cout <<
"min: " << tm_min * 1000 <<
" [ms]" << std::endl;
97 std::cout <<
"mean: " << tm_mean * 1000 <<
" [ms]" << std::endl;
98 std::cout <<
"stddev: " << tm_stddev * 1000 <<
" [ms]" << std::endl;
112 double tm_max, tm_min, tm_mean, tm_stddev;
114 std::cout <<
"max: " << tm_max * 1000 <<
" [ms]" << std::endl;
115 std::cout <<
"min: " << tm_min * 1000 <<
" [ms]" << std::endl;
116 std::cout <<
"mean: " << tm_mean * 1000 <<
" [ms]" << std::endl;
117 std::cout <<
"stddev: " << tm_stddev * 1000 <<
" [ms]" << std::endl;
163 RTC::Create<RTSample>,
164 RTC::Delete<RTSample>);
bool getStatistics(double &max_interval, double &min_interval, double &mean_interval, double &stddev)
Get total statistics.
DataFlowComponentBase class.
Realtime periodic execution example component *.
RTSample(RTC::Manager *manager)
void tack()
Finish time measurement for time statistics.
virtual RTC::ReturnCode_t onInitialize()
Callback function to initialize.
void RTSampleInit(RTC::Manager *manager)
ExecutionContextHandle_t UniqueId
static const char * rtsample_spec[]
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
Callback function to execute periodically.
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
Callback function to deactivate.
Class represents a set of properties.
void tick()
Begin time measurement for time statistics.
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
Callback function to activate.