Robot secondaire

Dependencies:   RoboClaw mbed StepperMotor

Fork of RoboClaw by Simon Emarre

Map/map.h

Committer:
sype
Date:
2016-05-05
Revision:
77:f19cc7f81f2a
Parent:
47:be4eebf40568
Child:
52:98f8a6ccb6ae

File content as of revision 77:f19cc7f81f2a:

#ifndef MAP_H
#define MAP_H

#include "obsCarr.h"
#include "pointParcours.h"
#include "nVector.h"
#include "controle.h"
#include "Odometry.h"

class map {
public:
    map (Odometry* nodo);
    void addObs (obsCarr nobs);
    void FindWay (point dep, point arr);
    void FindWay (float depX, float depY, float arrX, float arrY);
    void Execute (float XObjectif, float YObjectif);
    nVector<pointParcours>& getParc () { return path; }
    bool& getEnded () { return endedParc; }

protected:
    nVector<obsCarr> obs;
    nVector<pointParcours> path;
    bool endedParc; // Definit s'il existe un chemin parcourable dans le dernier FindWay
    Odometry* Codo;
};

#endif