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
- Can you now see the robot adjusting its orientation with every step that it takes?
- Does it now maintain a constant distance from the box as it drives around it?
- 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_cm, left_turn_drive_cm & large_distance_cm in the Variable Initialization cell and re-running the Main Code cell.