Public Member Functions | Private Member Functions | Private Attributes | List of all members
DiagnosticsPublisher Class Reference

#include <diagnostics_publisher.h>

Public Member Functions

 DiagnosticsPublisher (ros::NodeHandle &nh)
 
void setHardwareID (const std::string &hwId)
 
void stdImuTick (const ros::Time &stamp)
 
void updateStatus (const boost::optional< ixblue_stdbin_decoder::Data::INSSystemStatus > &systemStatus, const boost::optional< ixblue_stdbin_decoder::Data::INSAlgorithmStatus > &algorithmStatus)
 

Private Member Functions

void diagTimerCallback (const ros::TimerEvent &)
 
void produceStatusDiagnostics (diagnostic_updater::DiagnosticStatusWrapper &status)
 

Private Attributes

double connection_lost_timeout
 
ros::Timer diagnosticsTimer
 
diagnostic_updater::Updater diagnosticsUpdater
 
double expected_frequency
 
const double frequency_tolerance = 0.1
 
boost::optional< ixblue_stdbin_decoder::Data::INSAlgorithmStatuslastAlgorithmStatus
 
ros::SteadyTime lastMessageReceivedStamp
 
boost::optional< ixblue_stdbin_decoder::Data::INSSystemStatuslastSystemStatus
 
double max_latency
 
std::unique_ptr< diagnostic_updater::TopicDiagnosticstdImuTopicDiagnostic
 

Detailed Description

Definition at line 15 of file diagnostics_publisher.h.

Constructor & Destructor Documentation

DiagnosticsPublisher::DiagnosticsPublisher ( ros::NodeHandle nh)

Definition at line 3 of file diagnostics_publisher.cpp.

Member Function Documentation

void DiagnosticsPublisher::diagTimerCallback ( const ros::TimerEvent )
private

Definition at line 44 of file diagnostics_publisher.cpp.

void DiagnosticsPublisher::produceStatusDiagnostics ( diagnostic_updater::DiagnosticStatusWrapper status)
private

Definition at line 49 of file diagnostics_publisher.cpp.

void DiagnosticsPublisher::setHardwareID ( const std::string &  hwId)

Definition at line 24 of file diagnostics_publisher.cpp.

void DiagnosticsPublisher::stdImuTick ( const ros::Time stamp)

Definition at line 29 of file diagnostics_publisher.cpp.

void DiagnosticsPublisher::updateStatus ( const boost::optional< ixblue_stdbin_decoder::Data::INSSystemStatus > &  systemStatus,
const boost::optional< ixblue_stdbin_decoder::Data::INSAlgorithmStatus > &  algorithmStatus 
)

Definition at line 34 of file diagnostics_publisher.cpp.

Member Data Documentation

double DiagnosticsPublisher::connection_lost_timeout
private

Definition at line 34 of file diagnostics_publisher.h.

ros::Timer DiagnosticsPublisher::diagnosticsTimer
private

Definition at line 36 of file diagnostics_publisher.h.

diagnostic_updater::Updater DiagnosticsPublisher::diagnosticsUpdater
private

Definition at line 37 of file diagnostics_publisher.h.

double DiagnosticsPublisher::expected_frequency
private

Definition at line 31 of file diagnostics_publisher.h.

const double DiagnosticsPublisher::frequency_tolerance = 0.1
private

Definition at line 32 of file diagnostics_publisher.h.

boost::optional<ixblue_stdbin_decoder::Data::INSAlgorithmStatus> DiagnosticsPublisher::lastAlgorithmStatus
private

Definition at line 41 of file diagnostics_publisher.h.

ros::SteadyTime DiagnosticsPublisher::lastMessageReceivedStamp
private

Definition at line 39 of file diagnostics_publisher.h.

boost::optional<ixblue_stdbin_decoder::Data::INSSystemStatus> DiagnosticsPublisher::lastSystemStatus
private

Definition at line 40 of file diagnostics_publisher.h.

double DiagnosticsPublisher::max_latency
private

Definition at line 33 of file diagnostics_publisher.h.

std::unique_ptr<diagnostic_updater::TopicDiagnostic> DiagnosticsPublisher::stdImuTopicDiagnostic
private

Definition at line 38 of file diagnostics_publisher.h.


The documentation for this class was generated from the following files:


ixblue_ins_driver
Author(s): Adrien BARRAL , Laure LE BRETON
autogenerated on Wed Jan 27 2021 03:37:01