Toyota Motor and Uber plan to work together on developing self-driving car technologies, as the race to lead the global autonomous vehicle segment hots up.