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 namespace argos {
15 
23 
24  public:
25 
29  virtual ~CSimulatedActuator() {}
30 
41  virtual void SetRobot(CComposableEntity& c_entity) = 0;
42 
46  virtual void Update() = 0;
47 
48  };
49 
50 }
51 
57 #define REGISTER_ACTUATOR(CLASSNAME, \
58  LABEL, \
59  IMPLEMENTATION, \
60  AUTHOR, \
61  VERSION, \
62  BRIEF_DESCRIPTION, \
63  LONG_DESCRIPTION, \
64  STATUS) \
65  REGISTER_SYMBOL(CSimulatedActuator, \
66  CLASSNAME, \
67  LABEL " (" IMPLEMENTATION ")", \
68  AUTHOR, \
69  VERSION, \
70  BRIEF_DESCRIPTION, \
71  LONG_DESCRIPTION, \
72  STATUS)
73 
74 #endif
The basic interface for a simulated actuator.
Definition: actuator.h:22
virtual void SetRobot(CComposableEntity &c_entity)=0
Sets the entity associated to this actuator.
virtual ~CSimulatedActuator()
Class destructor.
Definition: actuator.h:29
Basic class for an entity that contains other entities.
virtual void Update()=0
Updates the state of the entity associated to this actuator.
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12