Why do you need to know what things are? You are a vacuum cleaner. You just need to see that you aren’t on the edge of a step (achieved with foor facing sensors for a xiaomi vacuum) and that you don’t have an obstruction ahead of you (detected by the onboard lidar and confirmed with a pressure plate on the xiaomi).
Thats not how this device works. You can pick it up, walk around, set it down in the den, and push the button, and it will say "vacuuming den". It draws a 2d map of your floor, using 3d images
It's cheaper to have a camera read the celling photo data and combine that with it bumping into walls to find its way around than to use a sensible solution like a lidar.