Driving safely with pedestrians in mind