Skip to content

Commit

Permalink
feat(rqt_diagnostic_graph_monitor): ignore status before struct (#106)
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <[email protected]>
  • Loading branch information
isamu-takagi authored Aug 28, 2024
1 parent 51ac9d3 commit e5ddd2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/rqt_diagnostic_graph_monitor/python/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def on_struct(self, msg):
foreach(self.struct_callbacks, lambda callback: callback(self.graph))

def on_status(self, msg):
if self.graph is None:
return
self.graph.update(msg)
foreach(self.status_callbacks, lambda callback: callback(self.graph))

Expand Down

0 comments on commit e5ddd2b

Please sign in to comment.