From 57eb82671365c4be3b1ba3331267afd92e01bbaf Mon Sep 17 00:00:00 2001 From: Hayato Mizushima Date: Fri, 1 Nov 2024 13:39:58 +0900 Subject: [PATCH] fix: condition to judge diag name Signed-off-by: Hayato Mizushima --- .../scripts/obstacle_segmentation_evaluator_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driving_log_replayer/scripts/obstacle_segmentation_evaluator_node.py b/driving_log_replayer/scripts/obstacle_segmentation_evaluator_node.py index 8ad6cc65..7e3a102c 100755 --- a/driving_log_replayer/scripts/obstacle_segmentation_evaluator_node.py +++ b/driving_log_replayer/scripts/obstacle_segmentation_evaluator_node.py @@ -304,7 +304,7 @@ def diag_cb(self, msg: DiagnosticArray) -> None: if len(msg.status) == 0: return diag_status: DiagnosticStatus = msg.status[0] - if diag_status.name == TARGET_DIAG_NAME: + if diag_status.name != TARGET_DIAG_NAME: return if diag_status.level >= DiagnosticStatus.ERROR: self.__topic_rate = False