default_visualization.h
Go to the documentation of this file.
1 
9 #ifndef DEFAULT_VISUALIZATION_H
10 #define DEFAULT_VISUALIZATION_H
11 
12 namespace argos {
13  class CDefaultVisualization;
14 }
15 
16 #include <argos3/core/simulator/visualization/visualization.h>
17 #include <sys/time.h>
18 
19 namespace argos {
20 
22 
23  public:
24 
26 
28 
29  virtual void Init(TConfigurationNode& t_tree) {}
30 
31  virtual void Reset() {}
32 
33  virtual void Destroy() {}
34 
35  virtual void Execute();
36 
37  private:
38 
40  void NormalStep();
41 
43  void RealTimeStep();
44 
45  private:
46 
47  typedef void (CDefaultVisualization::*TStepFunction)();
48 
49  private:
50 
52  TStepFunction m_tStepFunction;
53 
55  ::timeval m_tStepClockTime;
56 
58  ::timeval m_tStepStartTime;
59 
61  ::timeval m_tStepEndTime;
62 
64  ::timeval m_tStepElapsedTime;
65 
67  ::timeval m_tStepWaitTime;
68 
69  };
70 
71 }
72 
73 #endif
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual void Destroy()
Undoes whatever was done by Init().
virtual void Init(TConfigurationNode &t_tree)
Initializes the resource.
virtual void Reset()
Resets the resource.