From 190f8b774eac80268f04b16ffee031f90a17fa8a Mon Sep 17 00:00:00 2001 From: Harsh Deshpande Date: Mon, 29 Mar 2021 08:54:57 +0200 Subject: [PATCH] change output for missing node --- src/rosgraph_monitor/observers/graph_observer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rosgraph_monitor/observers/graph_observer.py b/src/rosgraph_monitor/observers/graph_observer.py index a919681..4a2ceb7 100644 --- a/src/rosgraph_monitor/observers/graph_observer.py +++ b/src/rosgraph_monitor/observers/graph_observer.py @@ -47,8 +47,10 @@ def diagnostics_from_response(self, resp): for interface in missing_interfaces: status_msg = DiagnosticStatus() status_msg.level = DiagnosticStatus.ERROR - status_msg.name = interface - status_msg.message = "Missing node" + status_msg.name = '' + status_msg.message = "Component status" + status_msg.values.append( + KeyValue(interface, "FALSE")) status_msgs.append(status_msg) for interface in additional_interfaces: