How do I know this? The app associated with our roomba shows the map it's created of our house. And its incredibly accurate, especially since it encourages us to tag spaces in order to set up intelligent vacuuming schedules (i.e. less in the laundry room, more in the kitchen/dining rooms).
It's even smart enough to identify temporary obstacles (like toys) and permanent obstacles.