Rescuer: Extension

Site: GoLabs
Course: Robotic Challenges with Python and GoPiGo
Book: Rescuer: Extension
Printed by: Guest user
Date: Thursday, 16 May 2024, 9:54 AM

Description

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.

1. Test In Reverse

When you have successfully navigated the maze going forwards, why not try running it in reverse by placing the robot at the exit instead of the entrance and selecting Cell >> Run All Cells from the top menu.

Can your robot successfully navigate the maze in reverse to reach the entrance?


2. Swap left-facing for right-facing sensor

You have just navigated a maze using what is known as a left-wall following algorithm. It is also possible to navigate a maze using a right-wall following algorithm.

Reposition your left-facing distance sensor so that it is on the right side of the robot, facing outwards, and change your code so that it navigates using the right wall of the maze instead of the left wall. You are recommended to start by rewriting your truth table.

Test your rescuer robot with the same maze and compare the route that it takes to the exit with the route that it previously took. If you have time, try navigating the maze in reverse as well.

Which algorithm behaves better? Left-facing or right-facing?

3. Congratulations!

You have successfully completed the Rescuer mission. All scientists are now at the base camp, safe and healthy, thanks to your robot. They could not have done it without you!