
Time is good
Fork of Robot2016_2-0 by
Map/map.h@52:98f8a6ccb6ae, 2016-05-03 (annotated)
- Committer:
- IceTeam
- Date:
- Tue May 03 12:37:31 2016 +0000
- Revision:
- 52:98f8a6ccb6ae
- Parent:
- 47:be4eebf40568
- Child:
- 55:dfeee9e5c0af
Debut ajout obstacle;
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 | 47:be4eebf40568 | 9 | |
IceTeam | 52:98f8a6ccb6ae | 10 | #define MAP_RIGHTSIDE 1 |
IceTeam | 52:98f8a6ccb6ae | 11 | #define MAP_LEFTSIDE 2 |
IceTeam | 52:98f8a6ccb6ae | 12 | |
IceTeam | 47:be4eebf40568 | 13 | class map { |
IceTeam | 47:be4eebf40568 | 14 | public: |
IceTeam | 47:be4eebf40568 | 15 | map (Odometry* nodo); |
IceTeam | 47:be4eebf40568 | 16 | void addObs (obsCarr nobs); |
IceTeam | 47:be4eebf40568 | 17 | void FindWay (point dep, point arr); |
IceTeam | 47:be4eebf40568 | 18 | void FindWay (float depX, float depY, float arrX, float arrY); |
IceTeam | 47:be4eebf40568 | 19 | void Execute (float XObjectif, float YObjectif); |
IceTeam | 52:98f8a6ccb6ae | 20 | void Build(int start_type); |
IceTeam | 47:be4eebf40568 | 21 | nVector<pointParcours>& getParc () { return path; } |
IceTeam | 47:be4eebf40568 | 22 | bool& getEnded () { return endedParc; } |
IceTeam | 47:be4eebf40568 | 23 | |
IceTeam | 47:be4eebf40568 | 24 | protected: |
IceTeam | 47:be4eebf40568 | 25 | nVector<obsCarr> obs; |
IceTeam | 47:be4eebf40568 | 26 | nVector<pointParcours> path; |
IceTeam | 47:be4eebf40568 | 27 | bool endedParc; // Definit s'il existe un chemin parcourable dans le dernier FindWay |
IceTeam | 47:be4eebf40568 | 28 | Odometry* Codo; |
IceTeam | 47:be4eebf40568 | 29 | }; |
IceTeam | 47:be4eebf40568 | 30 | |
IceTeam | 47:be4eebf40568 | 31 | #endif |