Technology may very well be the death of us all when AI learns too much and too well (think Skynet). The US, China and probably Russia have tested / are testing autonomous drones that have successfully found their air and ground targets. I hope they've successfully incorporated Issac Asimov's Rules of Robotics.
Having worked with robots and AI, it's my experience that we're a long way off. The first law gets broken all too often. The second law assumes no programming errors. When does that ever happen. The third law, what I call collision avoidance, kind of works as long as calibration is intact and the field is not too complex. Sometimes it isn't. Those self driving road vehicles keep being not entirely successful. Aircraft do a better job but I still want a human monitoring.
Asimov's First Law
A robot may not injure a human being or, through inaction, allow a human being to come to harm.
Second Law
A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
Third Law
A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.


!