V2X Communications Applied to Safety of Pedestrians and Vehicles