The Three Laws of Robotics, from the 56th edition of the “Handbook of Robotics” (published in 2058), are as follows:
1. A robot may not injure a human being or, through inaction, allow a human being to come to harm.
2. A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.
Pretty straightforward, right? And it’s nice that obeying humans is in there at number two.