From 5ff3cb6ca8da135016c38cece9763e40b47df84f Mon Sep 17 00:00:00 2001 From: Nathaniel Hargrave Date: Wed, 15 Jul 2026 17:07:42 -0400 Subject: [PATCH] new nodelist message type --- src/components/panels/NodeStatusPanel.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/panels/NodeStatusPanel.tsx b/src/components/panels/NodeStatusPanel.tsx index f04d40c..3ce2501 100644 --- a/src/components/panels/NodeStatusPanel.tsx +++ b/src/components/panels/NodeStatusPanel.tsx @@ -21,12 +21,11 @@ const NodeStatusPanel: React.FC = () => { const topic = new ROSLIB.Topic({ ros, name: '/system/nodes', - messageType: 'std_msgs/msg/String', + messageType: 'interfaces/msg/NodeList', }); const handleMsg = (msg: any) => { try { - const data = JSON.parse(msg.data) as { nodes: string[] }; const now = Date.now(); setNodes(prev => { @@ -41,7 +40,7 @@ const NodeStatusPanel: React.FC = () => { } // mark active nodes online - for (const name of data.nodes) { + for (const name of msg.nodes) { updated.set(name, { online: true, lastSeen: now,