Improved method for localization of beacons for an autonomous device