Public Attributes | List of all members
cras::SimpleDurationStatusParam Struct Reference

Helper struct for easy brace-initialization of DurationStatusParam objects. On supported compilers, you can also use designated braced initialization, i.e. param = {.maxDuration = {10,0}}. Supported is e.g. GCC 8+ in any mode or any compiler in C++20 mode. More...

#include <duration_status_param.h>

Public Attributes

decltype(::cras::DurationStatusParam::minDurationmaxDuration {::ros::DURATION_MAX}
 Maximum duration considered as valid. More...
 
decltype(::cras::DurationStatusParam::minDuration) minDuration {0, 0}
 Minimum duration considered as valid. More...
 
decltype(::cras::DurationStatusParam::noEventsIsOk) noEventsIsOk {true}
 Whether it is okay when there are no events between two update calls. More...
 
decltype(::cras::DurationStatusParam::tolerance) tolerance {0.1}
 Tolerance of the duration. More...
 
decltype(::cras::DurationStatusParam::windowSize) windowSize {5u}
 Number of updates during which the duration is computed. More...
 

Detailed Description

Helper struct for easy brace-initialization of DurationStatusParam objects. On supported compilers, you can also use designated braced initialization, i.e. param = {.maxDuration = {10,0}}. Supported is e.g. GCC 8+ in any mode or any compiler in C++20 mode.

Definition at line 74 of file duration_status_param.h.

Member Data Documentation

◆ maxDuration

decltype(::cras::DurationStatusParam::minDuration) cras::SimpleDurationStatusParam::maxDuration {::ros::DURATION_MAX}

Maximum duration considered as valid.

Definition at line 80 of file duration_status_param.h.

◆ minDuration

decltype(::cras::DurationStatusParam::minDuration) cras::SimpleDurationStatusParam::minDuration {0, 0}

Minimum duration considered as valid.

Definition at line 77 of file duration_status_param.h.

◆ noEventsIsOk

decltype(::cras::DurationStatusParam::noEventsIsOk) cras::SimpleDurationStatusParam::noEventsIsOk {true}

Whether it is okay when there are no events between two update calls.

Definition at line 89 of file duration_status_param.h.

◆ tolerance

decltype(::cras::DurationStatusParam::tolerance) cras::SimpleDurationStatusParam::tolerance {0.1}

Tolerance of the duration.

Definition at line 83 of file duration_status_param.h.

◆ windowSize

decltype(::cras::DurationStatusParam::windowSize) cras::SimpleDurationStatusParam::windowSize {5u}

Number of updates during which the duration is computed.

Definition at line 86 of file duration_status_param.h.


The documentation for this struct was generated from the following file:


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Jun 17 2023 02:32:53