Please, that's the idea you got from fictional movies. They were and they are writers who wrote those fictions. The technology are not really working to create a world full of robots. Technology is not exactly here to save "Humanity" but to serve humans when they need it the most. The perhaps of technology is to help people, saving their time and making things easy. Saving Humanity is a completely different thing.