Humanoid robots have long been a punchline, from clumsy factory demos to viral clips of machines tripping over cables.