Robot's source code
Dependencies: mbed
Map/Objectifs/Objectif.h
- Committer:
- Jagang
- Date:
- 2015-05-11
- Revision:
- 123:55e5e9acc541
- Parent:
- 119:c45efcd706d9
File content as of revision 123:55e5e9acc541:
#ifndef OBJECTIF_H #define OBJECTIF_H #include "defines.h" #ifdef PLAN_A #include "Asserv.h" #else #include "planB.h" #endif class Objectif { public: Objectif(float x, float y, float theta); virtual void run() = 0; bool isDone(){return done;} float getX(){return x;} float getY(){return y;} float getTheta(){return theta;} int getId(){return id;} void setId(int id){this->id = id;} virtual int isActive(){return active;} void activate(){active=true;} void desactivate(){active=false;} protected: float x,y,theta; bool done,active; int id; }; #endif