Rescuer Learn 3: Following a Wall
This is the third challenge within the Robotics with GoPiGo and Python Curriculum.
Your task is to design a robot program that can navigate through the maze-like jungle without trampling over any plants or getting stuck in any dead ends.
Learn how to use the Distance Sensor and practice using the left-hand rule of maze-solving.
4. Test It Out
- Place a cardboard box in the middle of the room and
- Place the robot approximately 15cm away from it with the left side facing the box, similar to picture 1 above.
- Select the Main Code cell
- Click on Run Selected Cell.
Do you see the robot drive around the box, turning at every corner?
Does the robot maintain a constant distance from the box as it drives around it?
If not, why do you think this might be?
Describe your results.