The UK government has given the green light for testing driverless cars on public roads in the UK and is planning an industry code of practice for the testing of such vehicles.