Commit 4ff42e69 authored by Barcis, Michal's avatar Barcis, Michal
Browse files

hostnames prepared for KPK demo

parent 47e32298
...@@ -57,25 +57,26 @@ class CameraStream(Node, MissionExecutor): ...@@ -57,25 +57,26 @@ class CameraStream(Node, MissionExecutor):
refactored to allow for two-digit ids. refactored to allow for two-digit ids.
""" """
hostname_remapping = { hostname_remapping = {
'fdrones_b01': 'fdrones_b01', 'fdronesb00': 'fdronesb00',
'fdrones_b02': 'fdrones_b02', 'fdronesb01': 'fdronesb01',
'fdrones_b03': 'fdrones_b03', 'fdronesb02': 'fdronesb02',
'fdrones_b08': 'fdrones_b08', 'fdronesb03': 'fdronesb03',
'fdrones_b09': 'fdrones_b09', 'fdronesb04': 'fdronesb04',
'fdrones_b12': 'fdrones_b06', 'fdronesb05': 'fdronesb05',
'fdrones_b13': 'fdrones_b05', 'fdronesb06': 'fdronesb06',
'fdrones_b14': 'fdrones_b04', 'fdronesb07': 'fdronesb07',
'fdronesb08': 'fdronesb08',
} }
self.hosts = { self.hosts = {
'fdrones_b01': 0, 'fdronesb00': 0,
'fdrones_b02': 1, 'fdronesb01': 1,
'fdrones_b03': 2, 'fdronesb02': 2,
'fdrones_b04': 3, 'fdronesb03': 3,
'fdrones_b05': 4, 'fdronesb04': 4,
'fdrones_b06': 5, 'fdronesb05': 5,
'fdrones_b08': 6, 'fdronesb06': 6,
'fdrones_b09': 7, 'fdronesb07': 7,
} }
self.hostname = hostname_remapping[socket.gethostname()] self.hostname = hostname_remapping[socket.gethostname()]
self.publisher = self.create_publisher( self.publisher = self.create_publisher(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment