footbot_distance_scanner_equipped_entity.h
Go to the documentation of this file.
1 
7 #ifndef FOOTBOT_DISTANCE_SCANNER_EQUIPPED_ENTITY_H
8 #define FOOTBOT_DISTANCE_SCANNER_EQUIPPED_ENTITY_H
9 
10 namespace argos {
11  class CFootBotDistanceScannerEquippedEntity;
12 }
13 
14 #include <argos3/core/simulator/entity/entity.h>
15 #include <argos3/core/utility/math/vector3.h>
16 
17 namespace argos {
18 
20 
21  public:
22 
24 
25  enum EMode {
29  };
30 
31  public:
32 
34 
36  const std::string& str_id);
37 
38  virtual void Reset();
39 
40  virtual void Update();
41 
42  inline UInt32 GetMode() const {
43  return m_unMode;
44  }
45 
46  inline void SetMode(UInt32 un_mode) {
47  m_unMode = un_mode;
48  }
49 
50  inline const CRadians& GetRotation() const {
51  return m_cRotation;
52  }
53 
54  void SetRotation(const CRadians& c_rotation);
55 
56  inline Real GetRotationSpeed() const {
57  return m_fRotationSpeed;
58  }
59 
60  inline void SetRotationSpeed(Real f_speed) {
61  m_fRotationSpeed = f_speed;
62  }
63 
64  virtual std::string GetTypeDescription() const {
65  return "distance_scanner";
66  }
67 
68  private:
69 
70  UInt32 m_unMode;
71  CRadians m_cRotation;
72  Real m_fRotationSpeed;
73 
74  };
75 }
76 
77 #endif
unsigned int UInt32
32-bit unsigned integer.
Definition: datatypes.h:97
float Real
Collects all ARGoS code.
Definition: datatypes.h:39
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
Basic class for an entity that contains other entities.
The basic entity type.
Definition: entity.h:90
It defines the basic type CRadians, used to store an angle value in radians.
Definition: angles.h:42
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual void Update()
Updates the state of this entity.