当前位置: 首页>>代码示例>>C++>>正文


C++ Manager::setModuleInitProc方法代码示例

本文整理汇总了C++中rtc::Manager::setModuleInitProc方法的典型用法代码示例。如果您正苦于以下问题:C++ Manager::setModuleInitProc方法的具体用法?C++ Manager::setModuleInitProc怎么用?C++ Manager::setModuleInitProc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在rtc::Manager的用法示例。


在下文中一共展示了Manager::setModuleInitProc方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;

  setlocale(LC_ALL, "");
  bindtextdomain(PACKAGE, LOCALEDIR);
  textdomain(PACKAGE);

  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager();

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);

  return 0;
}
开发者ID:Nobu19800,项目名称:OpenHRIAudio,代码行数:29,代码来源:PortAudioOutputComp.cpp

示例2: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);
  ros::init(argc, argv, "ImageSensorROSBridgeComp", ros::init_options::NoSigintHandler);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager();

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);

  return 0;
}
开发者ID:Tnoriaki,项目名称:rtmros_common,代码行数:25,代码来源:ImageSensorROSBridgeComp.cpp

示例3: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager(true);

    QApplication app( argc, argv );

    MainWindow *mainWindow = new MainWindow();
    mainWindow->resize( 600, 400 );
    mainWindow->show();
    return app.exec();

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);

  return 0;
}
开发者ID:Nobu19800,项目名称:Math_RTCs,代码行数:31,代码来源:ScopeComp.cpp

示例4: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  // manager->runManager();

  // If you want to run the manager in non-blocking mode, do like this
  manager->runManager(true);

  system(SKYPEKIT_PATH);

  return 0;
}
开发者ID:ysuga,项目名称:SkypeRTC,代码行数:26,代码来源:SkypeRTCComp.cpp

示例5: main

int main (int argc, char** argv)
{
	if(!mclInitializeApplication(NULL,0))
	{
		std::cerr << "アプリケーションを初期化できません" << std::endl;
		mclGetLastErrorMessage();
		return -1;
	}
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager();

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);
  mclTerminateApplication();
  return 0;
}
开发者ID:hi-brain,项目名称:sh_GetN,代码行数:30,代码来源:sh_GetNComp.cpp

示例6: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);
  manager->init(argc, argv);
  manager->setModuleInitProc(MyModuleInit);
  manager->activateManager();
  manager->runManager();

  return 0;
}
开发者ID:paguiar,项目名称:udem-middleware,代码行数:11,代码来源:HardwareComp.cpp

示例7: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.

#ifdef WIN32
  manager->runManager(false);
#elif __APPLE__
  manager->runManager(true);
  while(!pCap);

  bool active_flag = false;
  while(pCap->isAlive()) {
    bool flag = pCap->isActive();
    if (!active_flag && flag) { // Rising Edge
      pCap->onInitCalib(0);
    }
    if (flag) {
      pCap->onProcess(0);
    }
    if (active_flag && !flag) { // Falling Edge
      pCap->onFiniCalib(0);
    }
    active_flag = flag;
  }
  
#else // Linux
  manager->runManager(false);
#endif

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);

  return 0;
}
开发者ID:sugarsweetrobotics,项目名称:CameraCalibration,代码行数:48,代码来源:CameraCalibrationComp.cpp

示例8: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

#ifdef _WINDOWS

  std::string path = getParam("manager.modules.load_path");
  coil::eraseBlank(path);

  coil::vstring pathList = coil::split(path, ",");

  for (int i = 0; i < pathList.size(); i++)
  {
	  std::string filepath = pathList[i];

	  char szFullPath[MAX_PATH];
	  _fullpath(szFullPath, filepath.c_str(), sizeof(szFullPath) / sizeof(szFullPath[0]));
	  std::string path = "PATH=";
	  path += getenv("PATH");
	  path += ";";
	  path += szFullPath;
	  putenv(path.c_str());

  }
#endif

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager();

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);

  return 0;
}
开发者ID:Nobu19800,项目名称:SettingRTSystem,代码行数:46,代码来源:rtcdControlComp.cpp

示例9: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;

#if defined(__linux)
  Gtk::Main kit(argc, argv);
  DialogWin dialogwin;
  Gtk::Main::run( dialogwin );
#elif defined(_WIN32)
  //HINSTANCE hInst = GetModuleHandle( NULL );
  HWND hwnd = GetWindow( NULL, GW_OWNER );
  OpenDiaog(hwnd,"Wave Files(*.wav)\0*.wav\0All Files(*.*)\0*.*\0\0",
					WaveFileName,OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY);
  printf("Wave File Name:%s\n", WaveFileName);

#endif

  setlocale(LC_ALL, "");
  bindtextdomain(PACKAGE, LOCALEDIR);
  textdomain(PACKAGE);

  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager();

  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);

  return 0;
}
开发者ID:Nobu19800,项目名称:OpenHRIAudio,代码行数:42,代码来源:WavPlayerComp.cpp

示例10: main

int main (int argc, char** argv)
{
  RTC::Manager* manager;
  manager = RTC::Manager::init(argc, argv);

  // Initialize manager
  manager->init(argc, argv);

  // Set module initialization proceduer
  // This procedure will be invoked in activateManager() function.
  manager->setModuleInitProc(MyModuleInit);

  // Activate manager and register to naming service
  manager->activateManager();

  // run the manager in blocking mode
  // runManager(false) is the default.
  manager->runManager(true);

  while(!pView);

  cv::namedWindow("Image Window", CV_WINDOW_AUTOSIZE);

  while(pView->isAlive()) {
    //std::cout << "Show Image" << std::endl;
    if (pView->imageQueue.size() > 0) {
      cv::Mat image = pView->imageQueue.front();
      pView->imageQueue.pop();
      imshow("Image Window", image);
      int c = cvWaitKey(1);
    }

  }
  // If you want to run the manager in non-blocking mode, do like this
  // manager->runManager(true);
  cv::destroyWindow("Image Window");
  return 0;
}
开发者ID:sugarsweetrobotics,项目名称:ImageViewer,代码行数:38,代码来源:ImageViewerComp.cpp


注:本文中的rtc::Manager::setModuleInitProc方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。