This experiment has been done in Rotterdam, the Netherlands in the 90s. It gained a tonne of publicity but it did not end up getting widely adopted. Most homeless people (understandably) feared getting stigmatized if they were spotted sleeping in one. https://museumrotterdam.nl/collectie/item/71471-1-3