duration_status_param.h
Go to the documentation of this file.
1 #pragma once
2 
11 #include <ros/duration.h>
12 
13 namespace cras
14 {
15 
16 struct SimpleDurationStatusParam;
17 
22 {
31  explicit DurationStatusParam(
32  const ::ros::Duration& minDuration = {0, 0}, const ::ros::Duration& maxDuration = ::ros::DURATION_MAX,
33  double tolerance = 0.1, size_t windowSize = 5, bool noEventsIsOk = true);
34 
39  DurationStatusParam(const ::cras::DurationStatusParam& other); // NOLINT
40 
45  DurationStatusParam(const ::cras::SimpleDurationStatusParam& params); // NOLINT
46 
51  ::cras::DurationStatusParam& operator=(const ::cras::DurationStatusParam& other);
52 
55 
57  ::ros::Duration maxDuration {::ros::DURATION_MAX};
58 
60  double tolerance {0.1};
61 
63  size_t windowSize {5u};
64 
66  bool noEventsIsOk {true};
67 };
68 
75 {
78 
80  decltype(::cras::DurationStatusParam::minDuration) maxDuration {::ros::DURATION_MAX};
81 
84 
87 
90 };
91 
92 
93 }
cras::SimpleDurationStatusParam
Helper struct for easy brace-initialization of DurationStatusParam objects. On supported compilers,...
Definition: duration_status_param.h:74
cras::DurationStatusParam::minDuration
::ros::Duration minDuration
Minimum duration considered as valid.
Definition: duration_status_param.h:54
cras
Definition: any.hpp:15
cras::DurationStatusParam::operator=
::cras::DurationStatusParam & operator=(const ::cras::DurationStatusParam &other)
Copy assignment operator.
cras::DurationStatusParam::DurationStatusParam
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::maxDuration
::ros::Duration maxDuration
Maximum duration considered as valid.
Definition: duration_status_param.h:57
cras::DurationStatusParam::windowSize
size_t windowSize
Number of updates during which the duration is computed.
Definition: duration_status_param.h:63
duration.h
cras::DurationStatusParam
Parameters of DurationStatus diagnostic task.
Definition: duration_status_param.h:21
cras::DurationStatusParam::tolerance
double tolerance
Tolerance of the duration.
Definition: duration_status_param.h:60
cras::SimpleDurationStatusParam::minDuration
decltype(::cras::DurationStatusParam::minDuration) minDuration
Minimum duration considered as valid.
Definition: duration_status_param.h:77
cras::DurationStatusParam::noEventsIsOk
bool noEventsIsOk
Whether it is okay when there are no events between two update calls.
Definition: duration_status_param.h:66
cras::SimpleDurationStatusParam::maxDuration
decltype(::cras::DurationStatusParam::minDuration) maxDuration
Maximum duration considered as valid.
Definition: duration_status_param.h:80
cras::SimpleDurationStatusParam::noEventsIsOk
decltype(::cras::DurationStatusParam::noEventsIsOk) noEventsIsOk
Whether it is okay when there are no events between two update calls.
Definition: duration_status_param.h:89
ros::Duration
cras::SimpleDurationStatusParam::windowSize
decltype(::cras::DurationStatusParam::windowSize) windowSize
Number of updates during which the duration is computed.
Definition: duration_status_param.h:86
cras::SimpleDurationStatusParam::tolerance
decltype(::cras::DurationStatusParam::tolerance) tolerance
Tolerance of the duration.
Definition: duration_status_param.h:83


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 5 2024 03:50:30