Robots are starting to gain something that looks a lot like a sense of touch, and in some cases even a crude version of pain.