Here makeshift homeless camps are synonymous with deadly fires, rampant drug abuse, and frequent serious crimes like murder and rape. I can certainly sympathize with those who have lost their homes or suffer from schizophrenia (very common in homeless encampments around here), and have nowhere else to go. But the way it now is, many of them live in daily fear of those around them. Free medical treatment is generally available, but many of them simply don't want it. Some are so far gone mentally, I've literally seen them run back into severe fires to save their little collection of mere garbage, and had to be forcibly restrained by fire fighters, police, or bystanders just to keep them alive. General risk to public health is also a great concern, because things like drug-resistant TB, typhus, and even cholera are real worries in such conditions, and are not merely hypothetical - they've been detected. But given our temperate climate, it's hard to keep the homeless from coming to this area. No simple answers.
Makeshift motorhome retirement parks out in the desert and so forth are an entirely different subject, but themselves inevitable for many who lost their jobs or actual homes for one reason or another.
Then there's the third type : Deluxe RV campers and small motorhomes parked alongside Silicon Valley streets, often with a bicycle or two attached. When even a couple making over $300,000 per year together can't afford a home in that area, and don't want to commute long distances either, it makes perfect sense. Many have gyms, showers, and cafeterias available at their high tech workplaces, commute short distances on their bicycles, and by living this way ten years or so, can save up a couple million dollars instead of being outright broke after extravagant monthly mortgage payments.