A self-reducing range-finder with an automatic registration system