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):
refactored to allow for two-digit ids.
"""
hostname_remapping = {
'fdrones_b01': 'fdrones_b01',
'fdrones_b02': 'fdrones_b02',
'fdrones_b03': 'fdrones_b03',
'fdrones_b08': 'fdrones_b08',
'fdrones_b09': 'fdrones_b09',
'fdrones_b12': 'fdrones_b06',
'fdrones_b13': 'fdrones_b05',
'fdrones_b14': 'fdrones_b04',
'fdronesb00': 'fdronesb00',
'fdronesb01': 'fdronesb01',
'fdronesb02': 'fdronesb02',
'fdronesb03': 'fdronesb03',
'fdronesb04': 'fdronesb04',
'fdronesb05': 'fdronesb05',
'fdronesb06': 'fdronesb06',
'fdronesb07': 'fdronesb07',
'fdronesb08': 'fdronesb08',
}
self.hosts = {
'fdrones_b01': 0,
'fdrones_b02': 1,
'fdrones_b03': 2,
'fdrones_b04': 3,
'fdrones_b05': 4,
'fdrones_b06': 5,
'fdrones_b08': 6,
'fdrones_b09': 7,
'fdronesb00': 0,
'fdronesb01': 1,
'fdronesb02': 2,
'fdronesb03': 3,
'fdronesb04': 4,
'fdronesb05': 5,
'fdronesb06': 6,
'fdronesb07': 7,
}
self.hostname = hostname_remapping[socket.gethostname()]
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