Struct UbloxTopicDiagnostic

Struct Documentation

struct UbloxTopicDiagnostic

Topic diagnostics for u-blox messages.

Public Functions

UbloxTopicDiagnostic() = default
UbloxTopicDiagnostic(UbloxTopicDiagnostic &&c) = delete
UbloxTopicDiagnostic &operator=(UbloxTopicDiagnostic &&c) = delete
UbloxTopicDiagnostic(const UbloxTopicDiagnostic &c) = delete
UbloxTopicDiagnostic &operator=(const UbloxTopicDiagnostic &c) = delete
~UbloxTopicDiagnostic() = default
inline explicit UbloxTopicDiagnostic(const std::string &topic, double freq_tol, int freq_window, uint16_t nav_rate, uint16_t meas_rate, std::shared_ptr<diagnostic_updater::Updater> updater)

Add a topic diagnostic to the diagnostic updater for.

The minimum and maximum frequency are equal to the nav rate in Hz.

Parameters:
  • name – the ROS topic

  • freq_tol – the tolerance [%] for the topic frequency

  • freq_window – the number of messages to use for diagnostic statistics

inline explicit UbloxTopicDiagnostic(const std::string &topic, double freq_min, double freq_max, double freq_tol, int freq_window, std::shared_ptr<diagnostic_updater::Updater> updater)

Add a topic diagnostic to the diagnostic updater for.

The minimum and maximum frequency are equal to the nav rate in Hz.

Parameters:
  • name – the ROS topic

  • freq_min – the minimum acceptable frequency for the topic

  • freq_max – the maximum acceptable frequency for the topic

  • freq_tol – the tolerance [%] for the topic frequency

  • freq_window – the number of messages to use for diagnostic statistics

Public Members

std::shared_ptr<diagnostic_updater::HeaderlessTopicDiagnostic> diagnostic

Topic frequency diagnostic updater.

double min_freq = {0.0}

Minimum allow frequency of topic.

double max_freq = {0.0}

Maximum allow frequency of topic.