
Time is good
Fork of Robot2016_2-0 by
Map/map.h@56:4fd9636dfb36, 2016-05-04 (annotated)
- Committer:
- IceTeam
- Date:
- Wed May 04 19:43:53 2016 +0200
- Revision:
- 56:4fd9636dfb36
- Parent:
- 55:dfeee9e5c0af
- Child:
- 57:86f491f5b25d
Changement dans la gestion des objectifs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
IceTeam | 47:be4eebf40568 | 1 | #ifndef MAP_H |
IceTeam | 47:be4eebf40568 | 2 | #define MAP_H |
IceTeam | 47:be4eebf40568 | 3 | |
IceTeam | 47:be4eebf40568 | 4 | #include "obsCarr.h" |
IceTeam | 47:be4eebf40568 | 5 | #include "pointParcours.h" |
IceTeam | 47:be4eebf40568 | 6 | #include "nVector.h" |
IceTeam | 47:be4eebf40568 | 7 | #include "controle.h" |
IceTeam | 47:be4eebf40568 | 8 | #include "Odometry.h" |
IceTeam | 56:4fd9636dfb36 | 9 | #include "../AX12/AX12.h" |
IceTeam | 47:be4eebf40568 | 10 | |
IceTeam | 52:98f8a6ccb6ae | 11 | #define MAP_RIGHTSIDE 1 |
IceTeam | 52:98f8a6ccb6ae | 12 | #define MAP_LEFTSIDE 2 |
IceTeam | 52:98f8a6ccb6ae | 13 | |
IceTeam | 47:be4eebf40568 | 14 | class map { |
IceTeam | 47:be4eebf40568 | 15 | public: |
IceTeam | 47:be4eebf40568 | 16 | map (Odometry* nodo); |
IceTeam | 47:be4eebf40568 | 17 | void addObs (obsCarr nobs); |
IceTeam | 47:be4eebf40568 | 18 | void FindWay (point dep, point arr); |
IceTeam | 47:be4eebf40568 | 19 | void FindWay (float depX, float depY, float arrX, float arrY); |
IceTeam | 47:be4eebf40568 | 20 | void Execute (float XObjectif, float YObjectif); |
IceTeam | 55:dfeee9e5c0af | 21 | void Build(int couleur, int formation); |
IceTeam | 47:be4eebf40568 | 22 | nVector<pointParcours>& getParc () { return path; } |
IceTeam | 47:be4eebf40568 | 23 | bool& getEnded () { return endedParc; } |
IceTeam | 47:be4eebf40568 | 24 | |
IceTeam | 47:be4eebf40568 | 25 | protected: |
IceTeam | 47:be4eebf40568 | 26 | nVector<obsCarr> obs; |
IceTeam | 47:be4eebf40568 | 27 | nVector<pointParcours> path; |
IceTeam | 47:be4eebf40568 | 28 | bool endedParc; // Definit s'il existe un chemin parcourable dans le dernier FindWay |
IceTeam | 47:be4eebf40568 | 29 | Odometry* Codo; |
IceTeam | 56:4fd9636dfb36 | 30 | |
IceTeam | 56:4fd9636dfb36 | 31 | float min_x_table, min_y_table, max_x_table, max_y_table; |
IceTeam | 47:be4eebf40568 | 32 | }; |
IceTeam | 47:be4eebf40568 | 33 | |
IceTeam | 47:be4eebf40568 | 34 | #endif |