Humanoid robots are moving rapidly from science fiction into factories, workplaces and potentially our homes, powered by advances in AI and billions of investment.