" The engineers programmed RUBI to cry when its arms were pulled. "
This comes from a NYTimes article on how computer scientists are creating robots who act as partners, teachers, or helpers, particularly for children, especially autistic children. The first trial with RUBI, two boys pulled off its arms. So crying turned out to be the solution; the boys backed off. I recommend the article.