From b11255c3345b389a2a43916139bb72165ee66138 Mon Sep 17 00:00:00 2001 From: Alexander Tiderko Date: Fri, 8 Dec 2023 18:38:15 +0100 Subject: [PATCH] set network id as ros domain id --- .../src/fkie_master_discovery/master_discovery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fkie_master_discovery/src/fkie_master_discovery/master_discovery.py b/fkie_master_discovery/src/fkie_master_discovery/master_discovery.py index 1403687f..c3fafcd1 100644 --- a/fkie_master_discovery/src/fkie_master_discovery/master_discovery.py +++ b/fkie_master_discovery/src/fkie_master_discovery/master_discovery.py @@ -1056,6 +1056,7 @@ def _crossbar_publish_masters(self): master.masteruri) > 0 else f'{addr}:{port}', origin=master.masteruri == self.master_monitor.getMasteruri(), hostnames=list(set([addr[0], get_hostname(master.masteruri)]))) + cbmaster.ros_domain_id = self.mcast_port - 11511 result.append(cbmaster) crossbar_reported_masters.add(master.masteruri) if not (crossbar_reported_masters == self._crossbar_reported_masters):