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.

6. Test it Out Again

      1. Can you now see the robot adjusting its orientation with every step that it takes?
      2. Does it now maintain a constant distance from the box as it drives around it?
      3. If not, where is it going wrong and in what way? Can you see why this might be happening?

Try experimenting with different values for the global variables sampling_distance_cmleft_turn_drive_cm & large_distance_cm in the Variable Initialization cell and re-running the Main Code cell.