prototype_joints_default_sensor.h
Go to the documentation of this file.
1 
7 #ifndef PROTOTYPE_JOINTS_DEFAULT_SENSOR_H
8 #define PROTOTYPE_JOINTS_DEFAULT_SENSOR_H
9 
10 namespace argos {
11  class CPrototypeJointsDefaultSensor;
12 }
13 
14 #include <argos3/core/simulator/sensor.h>
15 #include <argos3/plugins/robots/prototype/control_interface/ci_prototype_joints_sensor.h>
16 #include <argos3/plugins/robots/prototype/simulator/prototype_entity.h>
17 #include <argos3/plugins/robots/prototype/simulator/prototype_joint_equipped_entity.h>
18 
19 namespace argos {
20 
23 
24  public:
25  struct SSimulatedSensor : public SSensor {
26  SSimulatedSensor(const std::string& str_id,
28  SSensor(str_id),
29  Instance(s_sensor) {}
31  };
32 
33  public:
35 
37 
38  virtual void SetRobot(CComposableEntity& c_entity);
39 
40  virtual void Init(TConfigurationNode& t_tree);
41 
42  virtual void Update();
43 
44  virtual void Reset();
45 
46  private:
47 
48  std::vector<SSimulatedSensor> m_vecSimulatedSensors;
49 
50  CPrototypeJointEquippedEntity* m_pcJointEquippedEntity;
51 
52  };
53 }
54 
55 #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.
The basic interface for a simulated sensor.
Definition: sensor.h:24
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().
virtual void Update()
Updates the state of the entity associated to this sensor, if the sensor is currently enabled.
virtual void Init(TConfigurationNode &t_tree)
Initializes the sensor from the XML configuration tree.
SSimulatedSensor(const std::string &str_id, CPrototypeJointEntity::SSensor &s_sensor)