| 273 | } |
| 274 | |
| 275 | void handleLog(const rosgraph_msgs::Log& log) |
| 276 | { |
| 277 | if (log.level >= rosgraph_msgs::Log::ERROR) { |
| 278 | // check if ignored |
| 279 | for (auto const& str : error_ignore) { |
| 280 | if (log.msg.find(str) != std::string::npos) return; |
| 281 | } |
| 282 | notify("error"); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | void handleBattery(const sensor_msgs::BatteryState& msg) |
| 287 | { |