As robots get more and more sophisticated, what was once science fiction is fast becoming reality. But how did we get here?