The world’s factories now run five million industrial robots, and China installs more of them each year than the rest of the world combined. A new generation of AI-driven machines, humanoids among them, promises to automate the work the old robots never could. The economics are more interesting, and more sobering, than the demo videos suggest.