Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: RoboClaw mbed StepperMotor
Fork of RoboClaw by
Map/map.h@55:dfeee9e5c0af, 2016-05-04 (annotated)
- Committer:
- IceTeam
- Date:
- Wed May 04 16:27:51 2016 +0000
- Revision:
- 55:dfeee9e5c0af
- Parent:
- 52:98f8a6ccb6ae
- Child:
- 56:4fd9636dfb36
Correction bug map::Build;
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 | 55:dfeee9e5c0af | 20 | void Build(int couleur, int formation); |
| 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 |
