This is referred to as SLAM - Simultaneous Localization and Mapping - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Simultaneous_localization_and_mapping" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Simultaneous_localization_and_...</a>