Skip to content

Commit

Permalink
fix(ndt_scan_matcher): skipping_publish_num does not switches error s…
Browse files Browse the repository at this point in the history
…tate (#4853)

fix skip_publishing_num status

Co-authored-by: kminoda <[email protected]>
  • Loading branch information
yvzksgl and kminoda authored Sep 5, 2023
1 parent 30ec8f7 commit 6806b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ void NDTScanMatcher::timer_diagnostic()
}
if (
state_ptr_->count("skipping_publish_num") &&
std::stoi((*state_ptr_)["skipping_publish_num"]) > 1) {
std::stoi((*state_ptr_)["skipping_publish_num"]) > 1 &&
std::stoi((*state_ptr_)["skipping_publish_num"]) < 5) {
diag_status_msg.level = diagnostic_msgs::msg::DiagnosticStatus::WARN;
diag_status_msg.message += "skipping_publish_num > 1. ";
}
Expand Down

0 comments on commit 6806b13

Please sign in to comment.