class Map: """ Handles the map of the world. On a global scale: has a start, destination, and a list of waypoints. Coord system: GPS coordinates On a local scale: has a 2D polar map of the world around the boat. Coord system: moves and oriented with the boat """ def __init__(self): self.wind_vane = WindVane() self.gps = GPS() self.lidar = Lidar() self.world_map = load_world_map() def update_surroundings(self): """ Updates the computer's knowledge of the surroundings. :return: """ self.wind_vane.read_wind_vane() self.gps.read_gps() self.lidar.read_lidar()