Skip to content

Commit

Permalink
fix: check DiagnosticArray status length (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
hayato-m126 authored Oct 9, 2024
1 parent c5ad1ac commit 5e7dd74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driving_log_replayer/scripts/yabloc_evaluator_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self, name: str) -> None:
)

def diagnostics_cb(self, msg: DiagnosticArray) -> None:
if len(msg.status) == 0:
return
diag_status = msg.status[0]
if diag_status.name != TARGET_DIAG_NAME:
return
Expand Down

0 comments on commit 5e7dd74

Please sign in to comment.