Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Wed Apr 20 13:13:37 2016 +0000
Revision:
46:8eae88c45a78
Mise en static;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 46:8eae88c45a78 1 #ifndef MAP_H
IceTeam 46:8eae88c45a78 2 #define MAP_H
IceTeam 46:8eae88c45a78 3
IceTeam 46:8eae88c45a78 4 #include "obsCarr.h"
IceTeam 46:8eae88c45a78 5 #include "pointParcours.h"
IceTeam 46:8eae88c45a78 6 #include "nVector.h"
IceTeam 46:8eae88c45a78 7 #include "controle.h"
IceTeam 46:8eae88c45a78 8 #include "Odometry.h"
IceTeam 46:8eae88c45a78 9
IceTeam 46:8eae88c45a78 10 class map {
IceTeam 46:8eae88c45a78 11 public:
IceTeam 46:8eae88c45a78 12 map (Odometry* nodo);
IceTeam 46:8eae88c45a78 13 void addObs (obsCarr nobs);
IceTeam 46:8eae88c45a78 14 void FindWay (point dep, point arr);
IceTeam 46:8eae88c45a78 15 void FindWay (float depX, float depY, float arrX, float arrY);
IceTeam 46:8eae88c45a78 16 void Execute (float XObjectif, float YObjectif);
IceTeam 46:8eae88c45a78 17 nVector<pointParcours>& getParc () { return path; }
IceTeam 46:8eae88c45a78 18 bool& getEnded () { return endedParc; }
IceTeam 46:8eae88c45a78 19
IceTeam 46:8eae88c45a78 20 protected:
IceTeam 46:8eae88c45a78 21 nVector<obsCarr> obs;
IceTeam 46:8eae88c45a78 22 nVector<pointParcours> path;
IceTeam 46:8eae88c45a78 23 bool endedParc; // Definit s'il existe un chemin parcourable dans le dernier FindWay
IceTeam 46:8eae88c45a78 24 Odometry* Codo;
IceTeam 46:8eae88c45a78 25 };
IceTeam 46:8eae88c45a78 26
IceTeam 46:8eae88c45a78 27 #endif