Skip to content

Commit d331f5f

Browse files
committed
chore: display hazard status that has no hardware_id
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
1 parent 8c29188 commit d331f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/tier4_system_rviz_plugin/src/mrm_summary_overlay_display.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void insertNewlines(std::string & str, const size_t max_line_length)
7474

7575
std::optional<std::string> generateMrmMessage(diagnostic_msgs::msg::DiagnosticStatus diag_status)
7676
{
77-
if (diag_status.hardware_id == "" || diag_status.hardware_id == "system_error_monitor") {
77+
if (diag_status.hardware_id == "system_error_monitor") {
7878
return std::nullopt;
7979
} else if (diag_status.level == diagnostic_msgs::msg::DiagnosticStatus::ERROR) {
8080
std::string msg = "- ERROR: " + diag_status.name + " (" + diag_status.message + ")";

0 commit comments

Comments
 (0)