April 2026
461 pages
17h 56m
English
We’ve prepared another task for you—protecting a robot from falling. This little robot drives along and is up to no good. But the environment isn’t kind to the robot, and large dangerous holes don’t mean it well. Fortunately, the robot has two bright/dark sensors, mounted on the front left and right, which can determine the brightness of the ground in front of it (see Figure 3.16).
Figure 3.16 Simple Robot Sensors
If a sensor detects bright, it returns the value 0, if it detects dark, the sensor returns 1. To protect the life of the robot, you need to develop a simple perceptron that recognizes if there is a ...
Read now
Unlock full access