00001 #ifndef SENSORREADING_H 00002 #define SENSORREADING_H 00003 00004 #include "sensor.h" 00005 namespace GMapping{ 00006 00007 class SensorReading{ 00008 public: 00009 SensorReading(const Sensor* s=0, double time=0); 00010 virtual ~SensorReading(); 00011 inline double getTime() const {return m_time;} 00012 inline void setTime(double t) {m_time=t;} 00013 inline const Sensor* getSensor() const {return m_sensor;} 00014 protected: 00015 double m_time; 00016 const Sensor* m_sensor; 00017 00018 }; 00019 00020 }; //end namespace 00021 #endif 00022 00023