>>106411716
They already exist. Atlanta has one in a park enduring daily pavement ape abuse that has survived for over a decade and a half. They're really expensive. They were expensive to purchase and install, with ongoing maintenance costs also being high but they do work.
https://www.atlantamagazine.com/news-culture-articles/a-love-letter-to-the-piedmont-park-robot-bathroom/