actuator.h
Go to the documentation of this file.
1 
7 #ifndef ACTUATOR_H
8 #define ACTUATOR_H
9 
10 namespace argos {
11  class CComposableEntity;
12 }
13 
14 #include <argos3/core/utility/plugins/factory.h>
15 
16 namespace argos {
17 
25 
26  public:
27 
31  virtual ~CSimulatedActuator() {}
32 
43  virtual void SetRobot(CComposableEntity& c_entity) = 0;
44 
48  virtual void Update() = 0;
49 
50  };
51 
52 }
53 
59 #define REGISTER_ACTUATOR(CLASSNAME, \
60  LABEL, \
61  IMPLEMENTATION, \
62  AUTHOR, \
63  VERSION, \
64  BRIEF_DESCRIPTION, \
65  LONG_DESCRIPTION, \
66  STATUS) \
67  REGISTER_SYMBOL(CSimulatedActuator, \
68  CLASSNAME, \
69  LABEL " (" IMPLEMENTATION ")", \
70  AUTHOR, \
71  VERSION, \
72  BRIEF_DESCRIPTION, \
73  LONG_DESCRIPTION, \
74  STATUS)
75 
76 #endif
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
The basic interface for a simulated actuator.
Definition: actuator.h:24
virtual void Update()=0
Updates the state of the entity associated to this actuator.
virtual ~CSimulatedActuator()
Class destructor.
Definition: actuator.h:31
virtual void SetRobot(CComposableEntity &c_entity)=0
Sets the entity associated to this actuator.
Basic class for an entity that contains other entities.