Yeah, 5 centimeters is pretty close, and as you said, getting into the range of the PING's up close limits.
That said, you really don't want it overriding your inputs unless it is really going to hit a wall, so having it only do this when it is very close is good.
It takes some experimenting to decide exactly what works best for you.
I am using 5 and 8 for those outside sensors just like you. What I found was basically that I want it to ONLY override based on those sensors when the robot is literally starting to drag along the wall.
For the more front facing and back facing sensors, the robot needs more distance to slow down lest it hit something because it cannot decelerate fast enough.
For the side sensors though, they work best at just avoiding a situation where the robot is running diagonally to an object or wall and slowly creeping closer. They give it a slight bump away, but only when it is close.
Remember, these overrides are going to kick in when your robot is navigating via ROS, so you want them to only happen when the bot has somehow either created a bad path and is going to hit something or when the environment is changing faster than ROS can keep up, or if there is something the PING sees that the lidar did not (i.e. a mirror).
This all came from my initial experience from building the robot. The first time I set it on the floor and turned it on, it immediately ran full speed into a doorframe. It didn't hurt anything luckily, but it really could have if it had been something less sturdy than the wood doorframe.
So I decided to build the system like the human body, with a "nervous system" that responds to danger even before the signal gets to the brain. Kind of like your hand will flinch from a hot surface faster than your brain gets the signal.
Hence the built in halting and even backing off.
It has the added benefit that if ROS gets the bot into a particularly stuck situation, the automatic backoff can sometimes help it recover.
In a perfect world, the lidar would be all knowing, and the system would always build perfect paths.
This way though, if the thing is screwing up, at least if it tries to drive into a wall it will stop, even if you let your five year old have access to the web site and remote control it! :)
Anyway, way too much chatter just to say, yes, those side sensors are set to "barely work" for me too, and I think that is fine. Also remember that the halting is probably more important than the actual "back off", and finally, feel free to tune it, although I realize tuning those parameters and having to re-load the C code every time is a pain. I've considered making those parameters setable at run-time, but having them hard coded makes it fast and also reliable.