16 #include <argos3/core/config.h>
17 #include <argos3/core/utility/datatypes/datatypes.h>
18 #include <argos3/core/utility/configuration/base_configurable_resource.h>
38 typedef std::map<std::string, CCI_Sensor*, std::less<std::string> >
TMap;
78 virtual void Enable() { m_bEnabled =
true; }
83 virtual void Disable() { m_bEnabled =
false; }
96 virtual void CreateLuaState(lua_State* pt_lua_state) = 0;
103 virtual void ReadingsToLuaState(lua_State* pt_lua_state) = 0;
109 bool m_bEnabled{
false};
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
The basic interface for all sensors.
std::map< std::string, CCI_Sensor *, std::less< std::string > > TMap
virtual void Reset()
Resets the sensor to the state it had just after Init().
virtual void Destroy()
Destroys the sensor.
virtual void Enable()
Enables updating of sensor information in the event loop.
virtual void Init(TConfigurationNode &t_node)
Initializes the sensor from the XML configuration tree.
virtual void Disable()
Disables updating of sensor information in the event loop.
virtual ~CCI_Sensor()
Class destructor.
This class is the base of all XML-configurable ARGoS interface.