test morning

Dependencies:   ISR_Mini-explorer mbed

Fork of roboticLab_withclass_3_July by Georgios Tsamis

Committer:
Ludwigfr
Date:
Mon Jul 10 16:23:52 2017 +0000
Revision:
9:1cc27f33d3e1
Parent:
8:072a76960e27
Child:
10:d0109d7cbe7c
with lab 4 done with proper matrix function

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ludwigfr 0:9f7ee7ed13e4 1 #include "MiniExplorerCoimbra.hpp"
Ludwigfr 0:9f7ee7ed13e4 2
Ludwigfr 0:9f7ee7ed13e4 3 int main(){
Ludwigfr 2:11cd5173aa36 4
Ludwigfr 2:11cd5173aa36 5 //defaultXWorld, defaultYWorld, defaultThetaWorld, widthRealMap, heightRealMap
Ludwigfr 8:072a76960e27 6 //middle arena ISR 60,40
Ludwigfr 9:1cc27f33d3e1 7 MiniExplorerCoimbra myRobot(20,15,0,120,80);//0,0,0 : lower left, facing right
Ludwigfr 5:19f24c363418 8
geotsam 1:20f48907c726 9 //test lab1
Ludwigfr 8:072a76960e27 10 //MiniExplorerCoimbra myRobot(60,40,0,120,80);//0,0,0 : lower left, facing right
Ludwigfr 5:19f24c363418 11 //myRobot.go_to_point(20,55);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap)
Ludwigfr 8:072a76960e27 12 //myRobot.go_to_line_first_lab(1,0,-60);//I think it works but it will always go the right
Ludwigfr 8:072a76960e27 13 //myRobot.go_to_line_first_lab(-1,1,0);//I think it works but it will always go the right
Ludwigfr 8:072a76960e27 14 //myRobot.go_to_line_first_lab(0.375,-1,17.5);
Ludwigfr 5:19f24c363418 15 //gain distance line
Ludwigfr 8:072a76960e27 16 //myRobot.go_to_point_with_angle_first_lab(100,55,-3.14/2);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap)
Ludwigfr 5:19f24c363418 17 //small gain orientation
Ludwigfr 0:9f7ee7ed13e4 18 //test lab2
Ludwigfr 2:11cd5173aa36 19 //reminder for now the sonar is in debugged, if no problem,comment the right code for presentaiton
Ludwigfr 5:19f24c363418 20 //MiniExplorerCoimbra myRobot(60,40,0,120,80);//0,0,0 : lower left, facing right
Ludwigfr 2:11cd5173aa36 21 //myRobot.test_sonars_and_map(25);
Ludwigfr 8:072a76960e27 22 //myRobot.test_procedure_lab2(10);
geotsam 1:20f48907c726 23
Ludwigfr 0:9f7ee7ed13e4 24 //test lab3
Ludwigfr 8:072a76960e27 25 myRobot.try_to_reach_target(100,55);//need to adjust the constants.
Ludwigfr 5:19f24c363418 26
Ludwigfr 5:19f24c363418 27 //test lab4
Ludwigfr 8:072a76960e27 28 //MiniExplorerCoimbra myRobot(20,10,0,120,80);//0,0,0 : lower left, facing right
Ludwigfr 5:19f24c363418 29 //rectangle 100 width, 60 height
Ludwigfr 8:072a76960e27 30 //myRobot.test_prediction_sonar();
Ludwigfr 5:19f24c363418 31
Ludwigfr 0:9f7ee7ed13e4 32 return 0;
Ludwigfr 0:9f7ee7ed13e4 33 }
Ludwigfr 0:9f7ee7ed13e4 34