Chinese researchers have built a self-healing gelatin sensor that lets robots rate pain and protect themselves after damage.