52 has_initialized_(false)
55 MatchNoAnalyzeAnalyzer::~MatchNoAnalyzeAnalyzer() { }
58 bool MatchNoAnalyzeAnalyzer::init(
const string base_name,
const ros::NodeHandle &n)
62 ROS_ERROR(
"No power board name was specified in MatchNoAnalyzeAnalyzer! Power board must be \"Power board 10XX\". Namespace: %s", n.
getNamespace().c_str());
68 path_ = base_name + nice_name_;
70 path_ = base_name +
"/" + nice_name_;
72 if (!n.
getParam(
"my_item", my_item_name_))
74 ROS_ERROR(
"No parameter \"my_item\" found. Unable to initialize MatchNoAnalyzeAnalyzer!");
78 has_initialized_ =
true;
84 bool MatchNoAnalyzeAnalyzer::match(
const std::string name)
86 return has_initialized_ && name == my_item_name_;
91 ROS_ASSERT_MSG(item->getName() == my_item_name_,
"Asked to analyze item that wasn't mine! My name: %s, item: %s", my_item_name_.c_str(), item->getName().c_str());
96 vector<boost::shared_ptr<diagnostic_msgs::DiagnosticStatus> > MatchNoAnalyzeAnalyzer::report()
98 vector<boost::shared_ptr<diagnostic_msgs::DiagnosticStatus> > output;
PLUGINLIB_EXPORT_CLASS(test_diagnostic_aggregator::MatchNoAnalyzeAnalyzer, diagnostic_aggregator::Analyzer) MatchNoAnalyzeAnalyzer
#define ROS_ASSERT_MSG(cond,...)
const std::string & getNamespace() const
bool getParam(const std::string &key, std::string &s) const