Go to the documentation of this file.
12 #include <type_traits>
78 template <
typename Message>
129 FrequencyStatusParam(
double *min_freq,
double *max_freq,
double tolerance = 0.1,
int window_size = 5);
140 double min_freq = 0.0,
double max_freq = ::std::numeric_limits<double>::infinity(),
141 double tolerance = 0.1,
int window_size = 5);
199 double maxFreq {::std::numeric_limits<double>::infinity()};
224 double* min_freq,
double* max_freq,
double tolerance = 0.1,
int window_size = 5,
225 double min_acceptable = -1.0,
double max_acceptable = 5.0);
238 double min_freq = 0.0,
double max_freq = ::std::numeric_limits<double>::infinity(),
239 double tolerance = 0.1,
int window_size = 5,
double min_acceptable = -1.0,
double max_acceptable = 5.0);
259 const ::diagnostic_updater::FrequencyStatusParam& freqParam,
260 const ::diagnostic_updater::TimeStampStatusParam& stampParam);
268 const ::cras::SimpleTopicStatusParamWithHeader& params);
278 template <
typename Message>
279 using TopicStatusParam = ::std::conditional_t<::ros::message_traits::HasHeader<Message>::value,
::std::conditional_t<::ros::message_traits::HasHeader< Message >::value, ::cras::SimpleTopicStatusParamWithHeader, ::cras::SimpleTopicStatusParamNoHeader > SimpleTopicStatusParam
Helper struct for easy brace-initialization of TopicStatusParam objects.
::cras::SimpleTopicStatusParamNoHeader NoHeaderParam
The type of parameters for topics without a header.
double maxFreq
Maximum frequency. This field is used by the internal pointers if they are used, otherwise it is igno...
static constexpr NoHeaderParam _100Hz
100 Hz headerless topic, rate tolerance 10%, window size 5 updates
FrequencyStatusParam(double *min_freq, double *max_freq, double tolerance=0.1, int window_size=5)
The original constructor from diagnostic_updater::FrequencyStatusParam.
static constexpr NoHeaderParam _1Hz
1 Hz headerless topic, rate tolerance 10%, window size 5 updates
static constexpr HeaderParam fast100Hz
100 Hz topic with header, rate tolerance 10%, window size 5 updates, delay -1 to 0....
::cras::FrequencyStatusParam & operator=(const ::cras::FrequencyStatusParam &other)
Copy values from another object of this type. If it uses the internal pointers, their values are copi...
static constexpr HeaderParam delayed10Hz
10 Hz topic with header, rate tolerance 10%, window size 5 updates, delay -1 to 5 secs
double minFreq
Minimum frequency. This field is used by the internal pointers if they are used, otherwise it is igno...
static constexpr HeaderParam fast1Hz
1 Hz topic with header, rate tolerance 10%, window size 5 updates, delay -1 to 0.1 secs
double getExpectedRate() const
Get the expected/average rate. If min and max are the same, their value will be returned....
void copyAdditionalData(const ::cras::FrequencyStatusParam &other)
This method handles copying of the internal pointers if they are used.
static constexpr HeaderParam delayed1Hz
1 Hz topic with header, rate tolerance 10%, window size 5 updates, delay -1 to 5 secs
An extension of diagnostic_updater::FrequencyStatusParam that allows passing non-pointer min/max freq...
static constexpr NoHeaderParam _10Hz
10 Hz headerless topic, rate tolerance 10%, window size 5 updates
bool usesInternalPointers
Whether internal pointers are used or not (depends on whether this object was constructed with explic...
static constexpr HeaderParam fast10Hz
10 Hz topic with header, rate tolerance 10%, window size 5 updates, delay -1 to 0....
::std::conditional_t<::ros::message_traits::HasHeader< Message >::value, ::cras::TopicStatusParamWithHeader, ::cras::FrequencyStatusParam > TopicStatusParam
Helper struct for automatic choosing of the correct topic status parameter object based on whether th...
static constexpr HeaderParam delayed100Hz
100 Hz topic with header, rate tolerance 10%, window size 5 updates, delay -1 to 5 secs
::cras::SimpleTopicStatusParamWithHeader HeaderParam
The type of parameters for topics with header.
Utility class with various predefined topic diagnostic parameters.
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04