What is the function of the balls along the sidewalk?

For the safety of pedestrians.