Researchers have taught a humanoid robot to play tennis with humans — and it can hold its own.