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@47:be4eebf40568, 2016-04-25 (annotated)
- Committer:
- IceTeam
- Date:
- Mon Apr 25 12:42:32 2016 +0000
- Revision:
- 47:be4eebf40568
- Child:
- 52:98f8a6ccb6ae
Petit commit de batard;
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 | 47:be4eebf40568 | 10 | class map { |
| IceTeam | 47:be4eebf40568 | 11 | public: |
| IceTeam | 47:be4eebf40568 | 12 | map (Odometry* nodo); |
| IceTeam | 47:be4eebf40568 | 13 | void addObs (obsCarr nobs); |
| IceTeam | 47:be4eebf40568 | 14 | void FindWay (point dep, point arr); |
| IceTeam | 47:be4eebf40568 | 15 | void FindWay (float depX, float depY, float arrX, float arrY); |
| IceTeam | 47:be4eebf40568 | 16 | void Execute (float XObjectif, float YObjectif); |
| IceTeam | 47:be4eebf40568 | 17 | nVector<pointParcours>& getParc () { return path; } |
| IceTeam | 47:be4eebf40568 | 18 | bool& getEnded () { return endedParc; } |
| IceTeam | 47:be4eebf40568 | 19 | |
| IceTeam | 47:be4eebf40568 | 20 | protected: |
| IceTeam | 47:be4eebf40568 | 21 | nVector<obsCarr> obs; |
| IceTeam | 47:be4eebf40568 | 22 | nVector<pointParcours> path; |
| IceTeam | 47:be4eebf40568 | 23 | bool endedParc; // Definit s'il existe un chemin parcourable dans le dernier FindWay |
| IceTeam | 47:be4eebf40568 | 24 | Odometry* Codo; |
| IceTeam | 47:be4eebf40568 | 25 | }; |
| IceTeam | 47:be4eebf40568 | 26 | |
| IceTeam | 47:be4eebf40568 | 27 | #endif |
