Files
autopilot/main.py

24 lines
615 B
Python

from autopilot import AutoPilot, RandomPilot
from simulator import Simulator
from visualization import VisualizationManager
from trajectory_drawer import TrajectoryDrawer
from yandex_map import YandexMap
def main():
global trajectoryDrawer
yandexMap = YandexMap()
yandexMap.savePhoto('map.jpg')
yandexMap.destroy()
trajectoryDrawer = TrajectoryDrawer('map.jpg')
trajectoryDrawer.on_complete_trajectory = onCompleteTrajectory
trajectoryDrawer.show()
def onCompleteTrajectory(points):
print("I've got points. Here these: ")
print(points)
if __name__ == "__main__":
main()