import src.config.waypoints as wp
from src.track.track import Track
from src.ui.main_view import MainView


class App:
    def __init__(self, headless_mode=False):

        self.headless_mode = headless_mode

        # Init tracks
        self.reinvent_2018 = Track(name="Reinvent 2018", waypoints=wp.REINVENT_2018, track_width=0.5, config_name="REINVENT_2018")
        self.fumiaki_loop_2020 = Track(name="Fumiaki Loop 2020", waypoints=wp.FUMIAKI_LOOP_2020, track_width=0.5,
                                  config_name="FUMIAKI_LOOP_2020")
        self.pentagon = Track(name="Pentagon", waypoints=wp.PENTAGON, track_width=0.5, config_name="PENTAGON")

        self.default_track = self.reinvent_2018  # Default track

        # Init UI
        if not headless_mode:
            self.view = MainView(self, self.fumiaki_loop_2020.model)
            self.view.update()
            self.view.mainloop()

        # renderer = TrackRenderer(reinvent_2018)
        # renderer.render()


if __name__ == "__main__":
    app = App()

4cfe584bc57992df1d684de0e7c6289e914fca24
<mask token>


class App:
    <mask token>


<mask token>

<mask token>


class App:

    def __init__(self, headless_mode=False):
        self.headless_mode = headless_mode
        self.reinvent_2018 = Track(name='Reinvent 2018', waypoints=wp.
            REINVENT_2018, track_width=0.5, config_name='REINVENT_2018')
        self.fumiaki_loop_2020 = Track(name='Fumiaki Loop 2020', waypoints=
            wp.FUMIAKI_LOOP_2020, track_width=0.5, config_name=
            'FUMIAKI_LOOP_2020')
        self.pentagon = Track(name='Pentagon', waypoints=wp.PENTAGON,
            track_width=0.5, config_name='PENTAGON')
        self.default_track = self.reinvent_2018
        if not headless_mode:
            self.view = MainView(self, self.fumiaki_loop_2020.model)
            self.view.update()
            self.view.mainloop()


<mask token>

<mask token>


class App:

    def __init__(self, headless_mode=False):
        self.headless_mode = headless_mode
        self.reinvent_2018 = Track(name='Reinvent 2018', waypoints=wp.
            REINVENT_2018, track_width=0.5, config_name='REINVENT_2018')
        self.fumiaki_loop_2020 = Track(name='Fumiaki Loop 2020', waypoints=
            wp.FUMIAKI_LOOP_2020, track_width=0.5, config_name=
            'FUMIAKI_LOOP_2020')
        self.pentagon = Track(name='Pentagon', waypoints=wp.PENTAGON,
            track_width=0.5, config_name='PENTAGON')
        self.default_track = self.reinvent_2018
        if not headless_mode:
            self.view = MainView(self, self.fumiaki_loop_2020.model)
            self.view.update()
            self.view.mainloop()


if __name__ == '__main__':
    app = App()

import src.config.waypoints as wp
from src.track.track import Track
from src.ui.main_view import MainView


class App:

    def __init__(self, headless_mode=False):
        self.headless_mode = headless_mode
        self.reinvent_2018 = Track(name='Reinvent 2018', waypoints=wp.
            REINVENT_2018, track_width=0.5, config_name='REINVENT_2018')
        self.fumiaki_loop_2020 = Track(name='Fumiaki Loop 2020', waypoints=
            wp.FUMIAKI_LOOP_2020, track_width=0.5, config_name=
            'FUMIAKI_LOOP_2020')
        self.pentagon = Track(name='Pentagon', waypoints=wp.PENTAGON,
            track_width=0.5, config_name='PENTAGON')
        self.default_track = self.reinvent_2018
        if not headless_mode:
            self.view = MainView(self, self.fumiaki_loop_2020.model)
            self.view.update()
            self.view.mainloop()


if __name__ == '__main__':
    app = App()

import src.config.waypoints as wp
from src.track.track import Track
from src.ui.main_view import MainView


class App:
    def __init__(self, headless_mode=False):

        self.headless_mode = headless_mode

        # Init tracks
        self.reinvent_2018 = Track(name="Reinvent 2018", waypoints=wp.REINVENT_2018, track_width=0.5, config_name="REINVENT_2018")
        self.fumiaki_loop_2020 = Track(name="Fumiaki Loop 2020", waypoints=wp.FUMIAKI_LOOP_2020, track_width=0.5,
                                  config_name="FUMIAKI_LOOP_2020")
        self.pentagon = Track(name="Pentagon", waypoints=wp.PENTAGON, track_width=0.5, config_name="PENTAGON")

        self.default_track = self.reinvent_2018  # Default track

        # Init UI
        if not headless_mode:
            self.view = MainView(self, self.fumiaki_loop_2020.model)
            self.view.update()
            self.view.mainloop()

        # renderer = TrackRenderer(reinvent_2018)
        # renderer.render()


if __name__ == "__main__":
    app = App()
