…This system would help robots protect themselves from harm, giving robots a “pain reflex” would allow them to react to physical disturbances… We like robots because they can do jobs which would be otherwise fatal to humans, like going into highly radioactive environments. So, why would we want them to feel pain? A pain system could have applications for human-robot teams, which would allow robots to predict and prevent human harm.
Researchers from Stanford and University of Rome-La Sapienza built a robot that avoids collisions with humans. A pain-sensory system builds upon this idea, allowing robots to also prioritize their own survival, so long as it also accounts for the preservation of human life first.When designers implement these self-preservation systems into everyday robots, Isaac Asimov’s Three Laws of Robotics will be important to remember:
A robot may not injure a human being or, through inaction, allow a human being to come to harm.
A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws…”
Source: Big Think