Fig. 1: Our Virtual Robot code.
Fig. 2: The key to our code. Anything that is depicted in the code above can be referenced in this key.
Figure 1 depicts the code used for our Virtual Robot. Since this system was relatively complicated to work with, we weren't able to make our robot fully functional. However, we were able to make it so it could avoid obstacles such as the walls depicted in Video 1. This virtual course demonstrated that our code was extremely successful when it came to avoiding obstacles, which was a huge success.
However, it would've been ideal if our robot could've mimicked what we wanted our Redbot to be able to do- follow a path and lead someone to safety. This could've been accomplished if we programmed our robot to follow a path. But with the time constraints, we weren't able to do this.
Video 1: Demonstration of our Virtual Robot following a path.