test.cpp
00001
00002
00003
00004
00005
00006
00007 #if !MONITOR
00008 #include <runCtrl.h>
00009 #else
00010 #include <mRunCtrl.h>
00011 #endif
00012 #include <pathUtils.h>
00013 #include <stdio.h>
00014 #include <stdlib.h>
00015
00016 using namespace VXV;
00017
00018
00019 int main(int argc, char *argv[]) {
00020 try {
00021 #if !MONITOR
00022 RunCtrl run;
00023 #else
00024 mRunCtrl run;
00025 vmonitor::show();
00026 #endif
00027 if (run.connect(argc, argv) < 0) {
00028 printf("RunCtrl::connect: %s\n", run.what());
00029 exit(1);
00030 }
00031
00032 CoordinateCtrl local;
00033 local.setOwnCrdToCrd(&run, Position(1000, 1000, deg(0)));
00034 run.followLine(Position(0, 0, deg(0)), &local);
00035 VXV::Delay(6000);
00036 run.stop();
00037
00038 } catch (std::exception& e) {
00039 printf("exception: %s\n", e.what());
00040 }
00041 return 0;
00042 }
00043