Skip to content

Namespace custom_diagnostic_tasks

Namespace List > custom_diagnostic_tasks

Classes

Type Name
struct Error
class HysteresisStateMachine
struct Ok
class RateBoundStatus
Diagnostic task to monitor the interval between events.
struct RateBoundStatusParam
A structure that holds the constructor parameters for the RateBoundStatus class.
struct Stale
struct StateBase
struct Warn

Public Types

Type Name
typedef unsigned char DiagnosticStatus_t
typedef std::variant< Stale, Ok, Warn, Error > StateHolder

Public Static Functions

Type Name
StateHolder generate_state (const DiagnosticStatus_t & state)
DiagnosticStatus_t get_level (const StateHolder & state)
std::string get_level_string (DiagnosticStatus_t level)
size_t get_num_observations (const StateHolder & state)

Public Types Documentation

typedef DiagnosticStatus_t

using custom_diagnostic_tasks::DiagnosticStatus_t = typedef unsigned char;

typedef StateHolder

using custom_diagnostic_tasks::StateHolder = typedef std::variant<Stale, Ok, Warn, Error>;

Public Static Functions Documentation

function generate_state

static inline StateHolder custom_diagnostic_tasks::generate_state (
    const DiagnosticStatus_t & state
) 

function get_level

static DiagnosticStatus_t custom_diagnostic_tasks::get_level (
    const StateHolder & state
) 

function get_level_string

static std::string custom_diagnostic_tasks::get_level_string (
    DiagnosticStatus_t level
) 

function get_num_observations

static size_t custom_diagnostic_tasks::get_num_observations (
    const StateHolder & state
) 


The documentation for this class was generated from the following file nebula_ros/include/nebula_ros/common/diagnostics/hysteresis_state_machine.hpp