Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Revision:
11:9c70a7f4d7aa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Map/Obstacles/Obstacle.h	Tue Jan 05 15:48:25 2016 +0100
@@ -0,0 +1,34 @@
+#ifndef OBSTACLE_H_
+#define OBSTACLE_H_
+
+class Obstacle
+{
+    public:
+        Obstacle(float robotRadius,int id);
+        virtual ~Obstacle();
+        
+        virtual int height(float x, float y) = 0;
+        
+        void setBigShape(bool bs) {bigShape = bs;}
+        bool isBigShape() {return bigShape;}
+        
+        void setSmoothBigShape(bool sbs) {smoothBigShape = sbs;}
+        bool isSmoothBigShape() {return smoothBigShape;}
+        
+        void setRobotRadius(float robotRadius) {this->robotRadius = robotRadius;}
+        float getRobotRadius() {return robotRadius;}
+        
+        int getId(){return id;}
+        void setId(int id){this->id = id;}
+        
+        void activate(){active=true;}
+        void desactivate(){active=false;}
+    protected:
+        bool bigShape,smoothBigShape;
+        bool active;
+        float robotRadius;
+        
+        int id;
+};
+
+#endif