Robot's source code
Dependencies: mbed
Map/Obstacles/Obs_rect.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 OBS_RECT_H_ |
Jagang | 109:53918ba98306 | 2 | #define OBS_RECT_H_ |
Jagang | 109:53918ba98306 | 3 | |
Jagang | 109:53918ba98306 | 4 | #include "Obstacle.h" |
Jagang | 109:53918ba98306 | 5 | |
Jagang | 109:53918ba98306 | 6 | class Obs_rect: public Obstacle |
Jagang | 109:53918ba98306 | 7 | { |
Jagang | 109:53918ba98306 | 8 | public: |
Jagang | 109:53918ba98306 | 9 | Obs_rect(float robotRadius, float x1, float y1, float x2, float y2); |
Jagang | 109:53918ba98306 | 10 | virtual int height(float x, float y); |
Jagang | 109:53918ba98306 | 11 | |
Jagang | 109:53918ba98306 | 12 | private: |
Jagang | 109:53918ba98306 | 13 | float x1,y1,x2,y2; |
Jagang | 109:53918ba98306 | 14 | }; |
Jagang | 109:53918ba98306 | 15 | |
Jagang | 109:53918ba98306 | 16 | #endif |