A robot gets the input from the environment through sensors. This input is forwarded to the processor. The processor sends informaton for necessary acton according to the program installed in it. This instructon is carried out by the robot body. In this way, a robot works just like a computer.