The European Parliament has passed a resolution calling for an international ban on so-called killer robots. It aims to pre-empt the development and use of autonomous weapon systems that can kill without human intervention.
Last month, talks at the UN failed to reach consensus on the issue, with some countries saying the benefits of autonomous weapons should be explored.
And some MEPs were concerned legislation could limit scientific progress of artificial intelligence. While others said it could become a security issue if some countries allowed such weapons while others did not.
"I know this might look like a debate about some distant future or about science fiction. It's not," said Federica Mogherini, the EU chief of foreign and security policy during the debate at the European Parliament.
"Autonomous weapons systems must be banned internationally," said Bodil Valero, security policy spokeswoman for the EU Parliament's Greens/EFA Group. "The power to decide over life and death should never be taken out of human hands and given to machines."
The resolution comes ahead of negotiations scheduled at the United Nations in November, where it is hoped an agreement on an international ban can be reached. In August, experts from a range of countries met at the UN headquarters in Geneva to discuss ways to define and deal with computer-controlled weapons.