Learn 1: The Notebook
This is the fifth challenge within the Robotics with GoPiGo and Python Curriculum.
Your task is to design a robot program to deliver a selection of mail to the residents of GoPiGo Drive, a small cul-de-sac containing 3 houses.
Learn how to how to use and calibrate the color sensor.
5. Variable Container Class
In this mission we will be creating a simple container class to carry all our variables around in, as well as the robot and sensor objects that we’ve initialized. This makes declaring relevant objects and variables as global within our function definitions much simpler.
In this cell we have provided an empty class structure within which you will be declaring and initializing all your program’s objects and variables.
In computer science, a container class is a collection of other objects. In other words, it stores objects in an organized way. Think of putting loose LEGO bricks inside a plastic container to make them easier to carry and store.