test morning
Dependencies: ISR_Mini-explorer mbed
Fork of roboticLab_withclass_3_July by
main.cpp@5:19f24c363418, 2017-07-06 (annotated)
- Committer:
- Ludwigfr
- Date:
- Thu Jul 06 16:51:40 2017 +0000
- Revision:
- 5:19f24c363418
- Parent:
- 4:8132a0291c4b
- Child:
- 6:0e8db3a23486
latest 6/7 17h51
Who changed what in which revision?
User | Revision | Line number | New 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 | 5:19f24c363418 | 6 | //middle arena ISR 40,60 |
Ludwigfr | 5:19f24c363418 | 7 | //MiniExplorerCoimbra myRobot(20,25,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 5:19f24c363418 | 8 | |
geotsam | 1:20f48907c726 | 9 | //test lab1 |
Ludwigfr | 5:19f24c363418 | 10 | //myRobot.go_to_point(20,55);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap) |
Ludwigfr | 5:19f24c363418 | 11 | //myRobot.go_to_line_first_lab(1,-1,0);//I think it works but it will always go the right |
Ludwigfr | 5:19f24c363418 | 12 | //gain distance line |
Ludwigfr | 5:19f24c363418 | 13 | //myRobot.go_to_point_with_angle_first_lab(20,25,0);//SELECT A TARGET BETWEEN (0,0) and(widthRealMap,heightRealMap) |
Ludwigfr | 5:19f24c363418 | 14 | //small gain orientation |
Ludwigfr | 0:9f7ee7ed13e4 | 15 | //test lab2 |
Ludwigfr | 2:11cd5173aa36 | 16 | //reminder for now the sonar is in debugged, if no problem,comment the right code for presentaiton |
Ludwigfr | 5:19f24c363418 | 17 | //MiniExplorerCoimbra myRobot(60,40,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 2:11cd5173aa36 | 18 | //myRobot.test_sonars_and_map(25); |
Ludwigfr | 5:19f24c363418 | 19 | // myRobot.test_procedure_lab2(25); |
geotsam | 1:20f48907c726 | 20 | |
Ludwigfr | 0:9f7ee7ed13e4 | 21 | //test lab3 |
Ludwigfr | 5:19f24c363418 | 22 | //myRobot.try_to_reach_target(100,55);//need to adjust the constants. |
Ludwigfr | 5:19f24c363418 | 23 | |
Ludwigfr | 5:19f24c363418 | 24 | //test lab4 |
Ludwigfr | 5:19f24c363418 | 25 | MiniExplorerCoimbra myRobot(20,10,0,120,80);//0,0,0 : lower left, facing right |
Ludwigfr | 5:19f24c363418 | 26 | //rectangle 100 width, 60 height |
Ludwigfr | 5:19f24c363418 | 27 | myRobot.test_procedure_lab_4(80,0,0); |
Ludwigfr | 5:19f24c363418 | 28 | |
Ludwigfr | 0:9f7ee7ed13e4 | 29 | return 0; |
Ludwigfr | 0:9f7ee7ed13e4 | 30 | } |
Ludwigfr | 0:9f7ee7ed13e4 | 31 |