back.cpp
00001
00002
00003
00004
00005
00006
00007 #if !MONITOR
00008 #include <runCtrl.h>
00009 #else
00010 #include <mRunCtrl.h>
00011 #endif
00012 #include <typePrint.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 run.setStraightRefVel(-300);
00033 run.followLine(Position(0, 0, deg(0)));
00034 VXV::Delay(3000);
00035
00036 run.stop();
00037 VXV::Delay(1000);
00038
00039 } catch (std::exception& e) {
00040 printf("exception: %s\n", e.what());
00041 }
00042 return 0;
00043 }
00044