Environment mapping enabling safety and usability an electronic tow bar