HelloRTWorldComp.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
12 #include <rtm/RtcManager.h>
13 #include <string>
14 #include "HelloRTWorld.h"
15 
16 
17 void MyModuleInit(RtcManager* manager)
18 {
19  HelloRTWorldInit(manager);
20 
21  std::string name;
22  RtcBase* comp;
23  comp = manager->createComponent("HelloRTWorld", "example", name);
24  coil::usleep(10000);
25  comp->rtc_start();
26 
27 }
28 
29 
30 int main (int argc, char** argv)
31 {
32  RTM::RtcManager manager(argc, argv);
33  // Initialize manager
34  manager.initManager();
35  // Activate manager and register to naming service
36  manager.activateManager();
37  // Initialize my module on this maneger
38  manager.initModuleProc(MyModuleInit);
39  // Main loop
40  manager.runManager();
41  return 0;
42 }
43 
void HelloRTWorldInit(RtcManager *manager)
Hello RT world component.
int main(int argc, char **argv)
void MyModuleInit(RtcManager *manager)
int usleep(useconds_t usec)
Stop a processing at specified micro second time.
Definition: ace/coil/Time.h:51
RTObject_impl RtcBase
Definition: Manager.h:55


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:52