Robot's source code
Dependencies: mbed
Map/Obstacles/Obstacle.h@109:53918ba98306, 2015-05-05 (annotated)
- Committer:
- Jagang
- Date:
- Tue May 05 16:35:53 2015 +0000
- Revision:
- 109:53918ba98306
- Child:
- 123:55e5e9acc541
IA
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jagang | 109:53918ba98306 | 1 | #ifndef OBSTACLE_H_ |
Jagang | 109:53918ba98306 | 2 | #define OBSTACLE_H_ |
Jagang | 109:53918ba98306 | 3 | |
Jagang | 109:53918ba98306 | 4 | class Obstacle |
Jagang | 109:53918ba98306 | 5 | { |
Jagang | 109:53918ba98306 | 6 | public: |
Jagang | 109:53918ba98306 | 7 | Obstacle(float robotRadius); |
Jagang | 109:53918ba98306 | 8 | virtual ~Obstacle(); |
Jagang | 109:53918ba98306 | 9 | |
Jagang | 109:53918ba98306 | 10 | virtual int height(float x, float y) = 0; |
Jagang | 109:53918ba98306 | 11 | |
Jagang | 109:53918ba98306 | 12 | void setBigShape(bool bs) {bigShape = bs;} |
Jagang | 109:53918ba98306 | 13 | bool isBigShape() {return bigShape;} |
Jagang | 109:53918ba98306 | 14 | |
Jagang | 109:53918ba98306 | 15 | void setSmoothBigShape(bool sbs) {smoothBigShape = sbs;} |
Jagang | 109:53918ba98306 | 16 | bool isSmoothBigShape() {return smoothBigShape;} |
Jagang | 109:53918ba98306 | 17 | |
Jagang | 109:53918ba98306 | 18 | void setRobotRadius(float robotRadius) {this->robotRadius = robotRadius;} |
Jagang | 109:53918ba98306 | 19 | float getRobotRadius() {return robotRadius;} |
Jagang | 109:53918ba98306 | 20 | |
Jagang | 109:53918ba98306 | 21 | int getId(){return id;} |
Jagang | 109:53918ba98306 | 22 | void setId(int id){this->id = id;} |
Jagang | 109:53918ba98306 | 23 | |
Jagang | 109:53918ba98306 | 24 | protected: |
Jagang | 109:53918ba98306 | 25 | bool bigShape,smoothBigShape; |
Jagang | 109:53918ba98306 | 26 | float robotRadius; |
Jagang | 109:53918ba98306 | 27 | |
Jagang | 109:53918ba98306 | 28 | int id; |
Jagang | 109:53918ba98306 | 29 | }; |
Jagang | 109:53918ba98306 | 30 | |
Jagang | 109:53918ba98306 | 31 | #endif |