Ejemplo n.º 1
0
def build_map(scanners, m=12, beacons: np.array = None):
    if beacons is None:
        beacons = scanners[0].arr.copy()
    for s in scanners:
        for t in scanners:
            if s is not t:
                f = s.find_translations(t, m)
                if f is not None:
                    beacons = beacons.concatentate([beacons,f])
                    scanners.pop(scanners.index(t))
                    beacons = build_map(scanners, m, beacons)
    return beacons