iCub-main
PeriodicEventsVerifier.h
Go to the documentation of this file.
1 /******************************************************************************
2  * *
3  * Copyright (C) 2019 Fondazione Istituto Italiano di Tecnologia (IIT) *
4  * All Rights Reserved. *
5  * *
6  ******************************************************************************/
7 
8 
9 
16 #ifndef _PERIODIC_EVENTS_VERIFIER_H_
17 #define _PERIODIC_EVENTS_VERIFIER_H_
18 
19 #include <string>
20 
22 
31 namespace Tools
32 {
35 }
36 
37 
39 
45 {
46 
47  public:
48 
53 
58 
72  bool init(double period, double tolerance, double min, double max, double step, double reportPeriod, const std::string& name = {});
73 
74 
80  void tick(double currentTime);
81  private:
82  struct Impl;
83  Impl *pImpl;
84 
85 };
86 
87 
89 
97 {
98 
99  public:
104 
109 
123  bool init(double desiredResponseTime, double tolerance, double min, double max, double step, double reportPeriod, const std::string& name = {});
124 
130  void tick(double currentResponseTime, double requestTime);
131  private:
132  struct Impl;
133  Impl *pImpl;
134 
135 };
136 
137 
138 
139 #endif // include-guard
140 
141 
142 // - end-of-file (leave a blank line after)----------------------------------------------------------------------------
143 
constexpr double tolerance
Tools::Emb_PeriodicEventVerifier.
void tick(double currentTime)
Signals occurrence of the event to the object.
bool init(double period, double tolerance, double min, double max, double step, double reportPeriod, const std::string &name={})
Initializes the object with custom parameters.
Tools::Emb_RensponseTimingVerifier.
bool init(double desiredResponseTime, double tolerance, double min, double max, double step, double reportPeriod, const std::string &name={})
Initializes the object with custom parameters.
void tick(double currentResponseTime, double requestTime)
Adds the current response time to the collection of data of the object.
In the Tools namespace there are classes useful to check some kinds of performance on robot.
const FSC max
Definition: strain.h:48
const FSC min
Definition: strain.h:49