Public Member Functions | Private Member Functions | Private Attributes
diagnostic_aggregator::CorobotAnalyzer Class Reference

#include <corobot_analyzer.h>

Inheritance diagram for diagnostic_aggregator::CorobotAnalyzer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CorobotAnalyzer ()
 Default constructor loaded by pluginlib.
bool init (const std::string base_path, const ros::NodeHandle &n)
 Initializes GenericAnalyzer from namespace. Returns true if s.
virtual bool match (const std::string name)
 Returns true if item matches any of the given criteria.
virtual std::vector
< boost::shared_ptr
< diagnostic_msgs::DiagnosticStatus > > 
report ()
 Reports current state, returns vector of formatted status messages.
virtual ~CorobotAnalyzer ()

Private Member Functions

void processLCD (boost::shared_ptr< diagnostic_msgs::DiagnosticStatus > processed)

Private Attributes

std::vector< std::string > chaff_
std::vector< std::string > contains_
std::vector< std::string > expected_
std::vector< std::string > name_
ros::Publisher newError_pub
std::vector< struct processErrorsprocessErrorsList
std::vector< boost::regex > regex_
ros::Publisher removeError_pub
std::vector< std::string > startswith_

Detailed Description

Definition at line 206 of file corobot_analyzer.h.


Constructor & Destructor Documentation

Default constructor loaded by pluginlib.

Definition at line 47 of file corobot_analyzer.cpp.

Definition at line 150 of file corobot_analyzer.cpp.


Member Function Documentation

bool CorobotAnalyzer::init ( const std::string  base_path,
const ros::NodeHandle n 
) [virtual]

Initializes GenericAnalyzer from namespace. Returns true if s.

Parameters:
base_path: Prefix for all analyzers (ex: 'Robot')
n: NodeHandle in full namespace
Returns:
True if initialization succeed, false if no errors of

Implements diagnostic_aggregator::GenericAnalyzerBase.

Definition at line 49 of file corobot_analyzer.cpp.

bool CorobotAnalyzer::match ( const std::string  name) [virtual]

Returns true if item matches any of the given criteria.

Implements diagnostic_aggregator::GenericAnalyzerBase.

Definition at line 156 of file corobot_analyzer.cpp.

void CorobotAnalyzer::processLCD ( boost::shared_ptr< diagnostic_msgs::DiagnosticStatus >  processed) [private]

Definition at line 192 of file corobot_analyzer.cpp.

vector< boost::shared_ptr< diagnostic_msgs::DiagnosticStatus > > CorobotAnalyzer::report ( ) [virtual]

Reports current state, returns vector of formatted status messages.

Returns:
Vector of DiagnosticStatus messages, with correct prefix for all names.

Reimplemented from diagnostic_aggregator::GenericAnalyzerBase.

Definition at line 254 of file corobot_analyzer.cpp.


Member Data Documentation

std::vector<std::string> diagnostic_aggregator::CorobotAnalyzer::chaff_ [private]

Removed from the start of node names.

Definition at line 240 of file corobot_analyzer.h.

std::vector<std::string> diagnostic_aggregator::CorobotAnalyzer::contains_ [private]

Definition at line 243 of file corobot_analyzer.h.

std::vector<std::string> diagnostic_aggregator::CorobotAnalyzer::expected_ [private]

Definition at line 241 of file corobot_analyzer.h.

std::vector<std::string> diagnostic_aggregator::CorobotAnalyzer::name_ [private]

Definition at line 244 of file corobot_analyzer.h.

Definition at line 248 of file corobot_analyzer.h.

Definition at line 246 of file corobot_analyzer.h.

std::vector<boost::regex> diagnostic_aggregator::CorobotAnalyzer::regex_ [private]

Regular expressions to check against diagnostics names.

Definition at line 245 of file corobot_analyzer.h.

Definition at line 248 of file corobot_analyzer.h.

std::vector<std::string> diagnostic_aggregator::CorobotAnalyzer::startswith_ [private]

Definition at line 242 of file corobot_analyzer.h.


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


corobot_diagnostics
Author(s):
autogenerated on Wed Aug 26 2015 11:09:34