GenericAnalyzerBase is the base class for GenericAnalyzer and OtherAnalyzer.
More...
#include <generic_analyzer_base.h>
GenericAnalyzerBase is the base class for GenericAnalyzer and OtherAnalyzer.
GenericAnalyzerBase contains the getPath(), getName(), analyze() and report() functions of the Generic and Other Analyzers. It is a virtual class, and cannot be instantiated or loaded as a plugin. Subclasses are responsible for implementing the init() and match() functions.
The GenericAnalyzerBase holds the state of the analyzer, and tracks if items are stale, and if the user has the correct number of items.
Definition at line 97 of file generic_analyzer_base.h.
◆ GenericAnalyzerBase()
| diagnostic_aggregator::GenericAnalyzerBase::GenericAnalyzerBase |
( |
| ) |
|
|
inline |
◆ ~GenericAnalyzerBase()
| virtual diagnostic_aggregator::GenericAnalyzerBase::~GenericAnalyzerBase |
( |
| ) |
|
|
inlinevirtual |
◆ addItem()
◆ analyze()
◆ getName()
| virtual std::string diagnostic_aggregator::GenericAnalyzerBase::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getPath()
| virtual std::string diagnostic_aggregator::GenericAnalyzerBase::getPath |
( |
| ) |
const |
|
inlinevirtual |
◆ init() [1/2]
| bool diagnostic_aggregator::GenericAnalyzerBase::init |
( |
const std::string |
base_path, |
|
|
const ros::NodeHandle & |
n |
|
) |
| |
|
pure virtual |
◆ init() [2/2]
| bool diagnostic_aggregator::GenericAnalyzerBase::init |
( |
const std::string |
path, |
|
|
const std::string |
nice_name, |
|
|
double |
timeout = -1.0, |
|
|
int |
num_items_expected = -1, |
|
|
bool |
discard_stale = false |
|
) |
| |
|
inline |
◆ match()
| virtual bool diagnostic_aggregator::GenericAnalyzerBase::match |
( |
const std::string |
name | ) |
|
|
pure virtual |
◆ report()
| virtual std::vector<boost::shared_ptr<diagnostic_msgs::DiagnosticStatus> > diagnostic_aggregator::GenericAnalyzerBase::report |
( |
| ) |
|
|
inlinevirtual |
◆ discard_stale_
| bool diagnostic_aggregator::GenericAnalyzerBase::discard_stale_ |
|
private |
◆ has_initialized_
| bool diagnostic_aggregator::GenericAnalyzerBase::has_initialized_ |
|
private |
◆ has_warned_
| bool diagnostic_aggregator::GenericAnalyzerBase::has_warned_ |
|
private |
◆ items_
◆ last_header_level_
| int diagnostic_aggregator::GenericAnalyzerBase::last_header_level_ |
|
private |
◆ last_header_status_change_
| ros::Time diagnostic_aggregator::GenericAnalyzerBase::last_header_status_change_ |
|
private |
◆ nice_name_
| std::string diagnostic_aggregator::GenericAnalyzerBase::nice_name_ |
|
protected |
◆ num_items_expected_
| int diagnostic_aggregator::GenericAnalyzerBase::num_items_expected_ |
|
protected |
◆ path_
| std::string diagnostic_aggregator::GenericAnalyzerBase::path_ |
|
protected |
◆ timeout_
| double diagnostic_aggregator::GenericAnalyzerBase::timeout_ |
|
protected |
The documentation for this class was generated from the following file: