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

      1. Place a cardboard box in the middle of the room and
      2. Place the robot approximately 15cm away from it with the left side facing the box, similar to picture 1 above.
      3. Select the Main Code cell
      4. 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.