Struct SimpleTopicStatusParamWithHeader
Defined in File topic_status_param.hpp
Struct Documentation
-
struct SimpleTopicStatusParamWithHeader
Helper struct for easy brace-initialization of TopicStatusParam objects. On supported compilers, you can also use designated braced initialization, i.e.
param = {.maxRate = 10}. Supported is e.g. GCC 8+ in any mode or any compiler in C++20 mode.Note
Version for message types with a header (can measure delay).
Public Types
-
typedef ::std::remove_pointer_t<decltype(::diagnostic_updater::FrequencyStatusParam::max_freq_)> RateType
Public Members
-
decltype(::diagnostic_updater::FrequencyStatusParam::tolerance_) rateTolerance = {0.1}
Tolerance of the rate.
-
decltype(::diagnostic_updater::FrequencyStatusParam::window_size_) rateWindowSize = {5}
Number of updates during which the frequency is computed.
-
decltype(::diagnostic_updater::TimeStampStatusParam::min_acceptable_) minDelay = {-1.0}
Min acceptable delay (in s). It can be negative if timestamps in future are expected.
-
decltype(::diagnostic_updater::TimeStampStatusParam::max_acceptable_) maxDelay = {5.0}
Max acceptable delay (in s). It can be negative if timestamps in future are expected.
-
typedef ::std::remove_pointer_t<decltype(::diagnostic_updater::FrequencyStatusParam::max_freq_)> RateType