Text this: An Algorithm for Detecting Collision Risk between Trucks and Pedestrians in the Connected Environment