Go to the documentation of this file.
56 const ::ros::Duration& minDuration = {0, 0}, const ::ros::Duration& maxDuration = ::ros::DURATION_MAX,
57 double tolerance = 0.1,
size_t windowSize = 5u,
bool noEventsIsOk =
true);
67 const ::cras::DurationStatusParam& defaultParams);
70 const ::cras::SimpleDurationStatusParam& defaultParams);
84 void start(const ::ros::WallTime& time);
96 void stop(const ::ros::WallTime& time);
::std::vector<::cras::RunningStats<::ros::Duration > > historyStats
Computation of running average and variance using Welford's algorithm.
void start(const ::ros::Time &time=::ros::Time::now())
Start a single duration measurement.
::std::shared_ptr<::cras::BoundParamHelper > BoundParamHelperPtr
size_t getWindowSize() const
Number of updates during which the duration is computed.
void stop(const ::ros::Time &time=::ros::Time::now())
Stop a single duration measurement.
const ::ros::Duration & getMaxDuration() const
Maximum allowed duration.
DurationStatus(const ::std::string &name, const ::cras::DurationStatusParam ¶ms)
Create the diagnostic task for a header-less message (checking frequency only).
::cras::optional<::ros::Time > lastStartTime
::std::shared_ptr<::cras::DurationStatus > DurationStatusPtr
::std::vector<::ros::Duration > maxDurations
Bound param helper (allows omitting the param adapter in each getParam call).
Definitions of parameters for a DurationStatus diagnostic task.
::cras::RunningStats<::ros::Duration > stats
Template specializations of RunningStats for ros::Duration and ros::WallDuration.
::std::vector<::ros::Time > historyTimes
::cras::DurationStatusParam params
The parameters via which this task has been configured.
~DurationStatus() override
Parameters of DurationStatus diagnostic task.
double getTolerance() const
Tolerance of duration.
const ::ros::Duration & getMinDuration() const
Minimum allowed duration.
void run(::diagnostic_updater::DiagnosticStatusWrapper &stat) override
Diagnostic task for topic frequency and timestamp delay (combining FrequencyStatus and TimeStampStatu...
::std::vector<::ros::Duration > minDurations
A C++11 shim for std::optional. Uses std::optional when used in C++17 mode.
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04