This is a challenging question that many cities and organizations grapple with. What you're describing is often called "hostile architecture" or "defensive design" - features specifically intended to discourage certain behaviors, in this case, sleeping.
Yes, such designs do exist and are implemented in various forms. You'll find benches with individual armrests dividing seating space, sloped surfaces that make lying down difficult, segmented seating that prevents stretching out, and even surfaces with bumps or ridges. Some cities install benches with timed sprinklers or unpleasant vibrations.
However, I'd encourage considering the broader implications. While addressing legitimate concerns about public space maintenance is important, these designs often draw significant criticism for potentially criminalizing homelessness and prioritizing aesthetics over human dignity. Many urban planners and community advocates argue they merely displace problems rather than solve them.
Alternative approaches might include partnering with social services, creating designated rest areas with support services, or implementing community programs that address root causes. The most sustainable solutions typically balance practical management needs with compassion and effective social policy.
The decision involves weighing multiple perspectives - public safety, business concerns, human dignity, and long-term community wellbeing. It's worth examining whether the solution matches the scale and nature of the challenge your community faces.