Parameters of DurationStatus diagnostic task. More...
#include <duration_status_param.h>
Public Member Functions | |
DurationStatusParam (const ::cras::DurationStatusParam &other) | |
Copy constructor. More... | |
DurationStatusParam (const ::cras::SimpleDurationStatusParam ¶ms) | |
Initialize this object from SimpleDuraitonStatusParam . More... | |
DurationStatusParam (const ::ros::Duration &minDuration={0, 0}, const ::ros::Duration &maxDuration=::ros::DURATION_MAX, double tolerance=0.1, size_t windowSize=5, bool noEventsIsOk=true) | |
Construct the parameter object using the passed values. More... | |
::cras::DurationStatusParam & | operator= (const ::cras::DurationStatusParam &other) |
Copy assignment operator. More... | |
Public Attributes | |
::ros::Duration | maxDuration {::ros::DURATION_MAX} |
Maximum duration considered as valid. More... | |
::ros::Duration | minDuration {0, 0} |
Minimum duration considered as valid. More... | |
bool | noEventsIsOk {true} |
Whether it is okay when there are no events between two update calls. More... | |
double | tolerance {0.1} |
Tolerance of the duration. More... | |
size_t | windowSize {5u} |
Number of updates during which the duration is computed. More... | |
Parameters of DurationStatus diagnostic task.
Definition at line 21 of file duration_status_param.h.
|
explicit |
Construct the parameter object using the passed values.
[in] | minDuration | Minimum allowed duration. |
[in] | maxDuration | Maximum allowed duration. |
[in] | tolerance | Tolerance of the duration. |
[in] | windowSize | Number of updates during which the duration stats are considered. |
[in] | noEventsIsOk | Whether it is okay when there are no events between two update calls. |
cras::DurationStatusParam::DurationStatusParam | ( | const ::cras::DurationStatusParam & | other | ) |
Copy constructor.
[in] | other | The object to copy from. |
cras::DurationStatusParam::DurationStatusParam | ( | const ::cras::SimpleDurationStatusParam & | params | ) |
Initialize this object from SimpleDuraitonStatusParam
.
[in] | params | The parameters to initialize with. |
::cras::DurationStatusParam& cras::DurationStatusParam::operator= | ( | const ::cras::DurationStatusParam & | other | ) |
Copy assignment operator.
[in] | other | The object to copy from. |
::ros::Duration cras::DurationStatusParam::maxDuration {::ros::DURATION_MAX} |
Maximum duration considered as valid.
Definition at line 57 of file duration_status_param.h.
::ros::Duration cras::DurationStatusParam::minDuration {0, 0} |
Minimum duration considered as valid.
Definition at line 54 of file duration_status_param.h.
bool cras::DurationStatusParam::noEventsIsOk {true} |
Whether it is okay when there are no events between two update calls.
Definition at line 66 of file duration_status_param.h.
double cras::DurationStatusParam::tolerance {0.1} |
Tolerance of the duration.
Definition at line 60 of file duration_status_param.h.
size_t cras::DurationStatusParam::windowSize {5u} |
Number of updates during which the duration is computed.
Definition at line 63 of file duration_status_param.h.