HelloRTWorldComp.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00012 #include <rtm/RtcManager.h>
00013 #include <string>
00014 #include "HelloRTWorld.h"
00015 
00016 
00017 void MyModuleInit(RtcManager* manager)
00018 {
00019   HelloRTWorldInit(manager);
00020 
00021   std::string name;
00022   RtcBase* comp;
00023   comp = manager->createComponent("HelloRTWorld", "example", name);
00024   coil::usleep(10000);
00025   comp->rtc_start();
00026 
00027 }
00028 
00029 
00030 int main (int argc, char** argv)
00031 {
00032   RTM::RtcManager manager(argc, argv);
00033   // Initialize manager
00034   manager.initManager();
00035   // Activate manager and register to naming service
00036   manager.activateManager();
00037   // Initialize my module on this maneger
00038   manager.initModuleProc(MyModuleInit);
00039   // Main loop
00040   manager.runManager();
00041   return 0;
00042 }
00043 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:37