It isn't clear how this ends, though. Robots are going to enable a
lot of anti-social behaviours that were previously limited by personal risk during the execution and the odds of getting caught.
People tend to worry about "robot armies" because we aren't very good at imagining the future, and I'm sure we'll see those. We already are in terms of drones.
But a much bigger issue as costs drop and availability increases is going to be freelancers. This is going to be particularly problematic because robots, like computers, are going to be too useful to limit very much in civilian applications. Any dangerous, unpleasant, ugly job is going to have a robot for that.
Including assassination and robbing banks. Although there will also be robot security guards to counter such activities.
Nor do robots on the battlefield have any of the issues that limited CBN (Chemical/Biological/Nuclear... which is the way I learned it) weapons. None of those are enormously useful in actual combat. Chemical and biological weapons are difficult to control and deploy, and the "Davy Crockett Nuclear Rifle" aside, nuclear weapons are difficult to use for anything other than killing cities, which is rarely a strategically or tactically good thing to do. I'm not saying they're useless, merely that they aren't the be-all-end-all.
Military robots, though, pretty much are. There is every reason to expect that they will be used very widely, just like drones. Once upon a time drones were surveillance only. Now it's routine to weaponize them. Soon enough it'll be routine to send them out on autonomous interdiction missions: the economic temptation is just too high. Why send troops to cut off an area when you can have a 24/7 patrol of small, cheap drones that'll kill anything larger than a rabbit that tries to cross a virtual Maginot Line?
I'm not saying we shouldn't do any of this--robots are too useful to not develop. I am saying that the robot apocalypse, when it comes, will look a lot weirder than our 20th century fantasies.