Hundreds of thousands of people visited Shanghai to see fleets of humanoid robots, artificial hands and walls of computer chips as China projects global leadership on AI.