Trams
An early example can be found on trams in the form of a lifeguard which prevents pedestrians from being caught between the wheels of the leading bogie should they be hit. When a pedestrian hit the lifeguard a scoop/grille would be automatically lowered in front of the vehicle.
Read more about this topic: Pedestrian Safety Through Vehicle Design