TRUDI: Testing environment for vehicular applications running with devices in the loop