Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include <scriptable_monitor/scriptable_monitor.h>
00009
00010 PLUGINLIB_REGISTER_CLASS(ScriptableMonitor,
00011 diagnostic_aggregator::ScriptableMonitor,
00012 diagnostic_aggregator::Analyzer)
00013
00014 namespace diagnostic_aggregator {
00015
00016 ScriptableMonitor::ScriptableMonitor() {
00017 _scriptNode = new ScriptableMonitorNode();
00018 }
00019
00020 ScriptableMonitor::~ScriptableMonitor() {
00021 delete _scriptNode;
00022 }
00023
00024 bool ScriptableMonitor::init(const string baseName,
00025 const ros::NodeHandle& nodeHandle)
00026 {
00027 return true;
00028 }
00029
00030 bool ScriptableMonitor::match(const string name)
00031 {
00032 return true;
00033 }
00034
00035 bool ScriptableMonitor::analyze(const boost::shared_ptr<StatusItem> item)
00036 {
00037 return true;
00038 }
00039
00040 vector<boost::shared_ptr<diagnostic_msgs::DiagnosticStatus> > ScriptableMonitor::report()
00041 {
00042 return _scriptNode->getScriptHost().getDiagnosticStatusesAndClear();
00043 }
00044
00045 }