Computer scientists are developing robots that can provide intimacy, rather than just sexual pleasure.