16 struct SimpleDurationStatusParam;
60 double tolerance {0.1};
63 size_t windowSize {5u};
66 bool noEventsIsOk {
true};
Parameters of DurationStatus diagnostic task.
size_t windowSize
Number of updates during which the duration is computed.
::ros::Duration maxDuration
Maximum duration considered as valid.
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.
::cras::DurationStatusParam & operator=(const ::cras::DurationStatusParam &other)
Copy assignment operator.
Helper struct for easy brace-initialization of DurationStatusParam objects. On supported compilers...
double tolerance
Tolerance of the duration.
bool noEventsIsOk
Whether it is okay when there are no events between two update calls.
::ros::Duration minDuration
Minimum duration considered as valid.