00001 #ifndef SENSOR_H 00002 #define SENSOR_H 00003 00004 #include <string> 00005 #include <map> 00006 00007 namespace GMapping{ 00008 00009 class Sensor{ 00010 public: 00011 Sensor(const std::string& name=""); 00012 virtual ~Sensor(); 00013 inline std::string getName() const {return m_name;} 00014 inline void setName(const std::string& name) {m_name=name;} 00015 protected: 00016 std::string m_name; 00017 }; 00018 00019 typedef std::map<std::string, Sensor*> SensorMap; 00020 00021 }; //end namespace 00022 00023 #endif 00024