ARGoS  3
A parallel, multi-engine simulator for swarm robotics
plugins/robots/generic/control_interface/ci_proximity_sensor.h
Go to the documentation of this file.
00001 
00007 #ifndef CCI_PROXIMITY_SENSOR_H
00008 #define CCI_PROXIMITY_SENSOR_H
00009 
00010 namespace argos {
00011    class CCI_ProximitySensor;
00012 }
00013 
00014 #include <argos3/core/control_interface/ci_sensor.h>
00015 
00016 namespace argos {
00017 
00018    class CCI_ProximitySensor : public CCI_Sensor {
00019 
00020    public:
00021 
00022       virtual ~CCI_ProximitySensor() {}
00023 
00024       inline const std::vector<Real>& GetReadings() const {
00025          return m_tReadings;
00026       }
00027 
00028 #ifdef ARGOS_WITH_LUA
00029       virtual void CreateLuaState(lua_State* pt_lua_state);
00030 
00031       virtual void ReadingsToLuaState(lua_State* pt_lua_state);
00032 #endif
00033 
00034    protected:
00035 
00036       std::vector<Real> m_tReadings;
00037 
00038    };
00039 
00040 }
00041 
00042 #endif