You could teach a robot to pick up an egg by carefully programming each step into it, including how much pressure to exert, how much force is needed to lift the egg, and so on. You'd have a robot-made omelette. For mass-production work, this doesn't matter. The parts the robots work with are all identical, as are the actions to be performed with them. But robots that function in the real world, or anywhere more complicated than on an assembly line, really need is a way to sense their surroundings and react to them the way we do.
Some senses are easier to simulate than others.
Pressure sensors in the robot's hand can tell it when it has a firm grasp of the egg, and also how fragile it is. What 's far more difficult is dealing with three-dimensional objects. A cube viewed from anywhere not directly in line with one of its faces has seven corners visible. By measuring the angles of each corner, the computer can decide how the cube is positioned. You can even buy a robot dog as a pet.