Are city camping bans and hostile designs cruel and unusual punishment for homelessness?

Advocates for unhoused people argue these kinds of anti-camping laws effectively make homelessness a crime.
Source: camping