radios_default_sensor.h
Go to the documentation of this file.
1 
7 #ifndef RADIOS_DEFAULT_SENSOR_H
8 #define RADIOS_DEFAULT_SENSOR_H
9 
10 namespace argos {
11  class CRadiosDefaultSensor;
12 }
13 
14 #include <argos3/core/simulator/sensor.h>
15 #include <argos3/plugins/robots/generic/control_interface/ci_radios_sensor.h>
16 #include <argos3/plugins/simulator/entities/radio_equipped_entity.h>
17 
18 namespace argos {
19 
21  public CCI_RadiosSensor {
22 
23  public:
24 
26 
27  virtual ~CRadiosDefaultSensor() {}
28 
29  virtual void SetRobot(CComposableEntity& c_entity);
30 
31  virtual void Init(TConfigurationNode& t_tree);
32 
33  virtual void Update();
34 
35  virtual void Reset();
36 
41  inline bool IsShowRays() {
42  return m_bShowRays;
43  }
44 
49  inline void SetShowRays(bool b_show_rays) {
50  m_bShowRays = b_show_rays;
51  }
52 
53  protected:
54 
58 
59  };
60 }
61 
62 #endif
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Basic class for an entity that contains other entities.
An entity that contains a pointer to the user-defined controller.
The basic interface for a simulated sensor.
Definition: sensor.h:24
virtual void Update()
Updates the state of the entity associated to this sensor, if the sensor is currently enabled.
CControllableEntity * m_pcControllableEntity
bool IsShowRays()
Returns true if the rays must be shown in the GUI.
CRadioEquippedEntity * m_pcRadioEquippedEntity
virtual void Init(TConfigurationNode &t_tree)
Initializes the sensor from the XML configuration tree.
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this sensor.
virtual void Reset()
Resets the sensor to the state it had just after Init().
void SetShowRays(bool b_show_rays)
Sets whether or not the rays must be shown in the GUI.
A container of CRadioEntity.