rotateAngle.cpp

00001 /*
00002   回転コマンドのサンプル
00003   Satofumi KAMIMURA
00004   $Id$
00005 */
00006 
00007 #if !MONITOR
00008 #include <runCtrl.h>
00009 #else
00010 #include <mRunCtrl.h>
00011 #endif
00012 #include <stdio.h>
00013 #include <stdlib.h>
00014 
00015 using namespace VXV;
00016 
00017 
00018 int main(int argc, char *argv[]) {
00019   try {
00020 #if !MONITOR
00021     RunCtrl run;
00022 #else
00023     mRunCtrl run;
00024     vmonitor::show();
00025 #endif
00026     if (run.connect(argc, argv) < 0) {
00027       printf("RunCtrl::connect: %s\n", run.what());
00028       exit(1);
00029     }
00030 
00031     run.rotateAngle(deg(-360));
00032     while (!run.isStable()) {
00033       VXV::Delay(100);
00034     }
00035     VXV::Delay(1000);
00036     
00037   } catch (std::exception& e) {
00038     printf("exception: %s\n", e.what());
00039   }
00040   return 0;
00041 }
00042 

Generated on Mon Apr 13 22:52:04 2009 by  doxygen 1.5.7.1