00001
00002
00003 #ifndef _REC_ROBOTINO_COM_DISTANCESENSOR_H_
00004 #define _REC_ROBOTINO_COM_DISTANCESENSOR_H_
00005
00006 #include "rec/robotino/com/Actor.h"
00007
00008 namespace rec
00009 {
00010 namespace robotino
00011 {
00012 namespace com
00013 {
00017 class
00018 #ifdef WIN32
00019 # ifdef rec_robotino_com_EXPORTS
00020 __declspec(dllexport)
00021 #endif
00022 # ifdef rec_robotino_com2_EXPORTS
00023 __declspec(dllexport)
00024 #endif
00025 # ifdef rec_robotino_com3_EXPORTS
00026 __declspec(dllexport)
00027 #endif
00028 #endif
00029 DistanceSensor : public Actor
00030 {
00031 public:
00032 DistanceSensor();
00033
00037 static unsigned int numDistanceSensors();
00038
00045 void setSensorNumber( unsigned int n );
00046
00057 float voltage() const;
00058
00065 unsigned int heading() const;
00066
00067 private:
00068 unsigned int _sensorNumber;
00069 };
00070
00071 }
00072 }
00073 }
00074 #endif