#include <corobot_analyzer.h>
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 processErrors > | processErrorsList |
std::vector< boost::regex > | regex_ |
ros::Publisher | removeError_pub |
std::vector< std::string > | startswith_ |
Definition at line 206 of file corobot_analyzer.h.
Default constructor loaded by pluginlib.
Definition at line 47 of file corobot_analyzer.cpp.
CorobotAnalyzer::~CorobotAnalyzer | ( | ) | [virtual] |
Definition at line 150 of file corobot_analyzer.cpp.
bool CorobotAnalyzer::init | ( | const std::string | base_path, |
const ros::NodeHandle & | n | ||
) | [virtual] |
Initializes GenericAnalyzer from namespace. Returns true if s.
base_path | : Prefix for all analyzers (ex: 'Robot') |
n | : NodeHandle in full namespace |
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.
Reimplemented from diagnostic_aggregator::GenericAnalyzerBase.
Definition at line 254 of file corobot_analyzer.cpp.
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.
std::vector<struct processErrors> diagnostic_aggregator::CorobotAnalyzer::processErrorsList [private] |
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.