from os import path as osp
from omegaconf import DictConfig
import hydra
import pygame

from lidar.environment import BuildEnvironment


_module_ = osp.dirname(osp.abspath(__file__))


@hydra.main(config_path="config", config_name="config")
def main(cfg: DictConfig):

    print("Setup environment.")
    env = BuildEnvironment.from_img(
        cfg.lidar.map if osp.isabs(cfg.lidar.map) else osp.join(_module_, cfg.lidar.map)
    )

    running = True
    while running:

        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                print("Closing the app.")
                running = False
        
        pygame.display.update()


if __name__ == "__main__":
    main()
25b710ed07855c9511bb6bc9da0e08f3ad1d16e2
<mask token>


@hydra.main(config_path='config', config_name='config')
def main(cfg: DictConfig):
    print('Setup environment.')
    env = BuildEnvironment.from_img(cfg.lidar.map if osp.isabs(cfg.lidar.
        map) else osp.join(_module_, cfg.lidar.map))
    running = True
    while running:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                print('Closing the app.')
                running = False
        pygame.display.update()


<mask token>

<mask token>


@hydra.main(config_path='config', config_name='config')
def main(cfg: DictConfig):
    print('Setup environment.')
    env = BuildEnvironment.from_img(cfg.lidar.map if osp.isabs(cfg.lidar.
        map) else osp.join(_module_, cfg.lidar.map))
    running = True
    while running:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                print('Closing the app.')
                running = False
        pygame.display.update()


if __name__ == '__main__':
    main()

<mask token>
_module_ = osp.dirname(osp.abspath(__file__))


@hydra.main(config_path='config', config_name='config')
def main(cfg: DictConfig):
    print('Setup environment.')
    env = BuildEnvironment.from_img(cfg.lidar.map if osp.isabs(cfg.lidar.
        map) else osp.join(_module_, cfg.lidar.map))
    running = True
    while running:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                print('Closing the app.')
                running = False
        pygame.display.update()


if __name__ == '__main__':
    main()

from os import path as osp
from omegaconf import DictConfig
import hydra
import pygame
from lidar.environment import BuildEnvironment
_module_ = osp.dirname(osp.abspath(__file__))


@hydra.main(config_path='config', config_name='config')
def main(cfg: DictConfig):
    print('Setup environment.')
    env = BuildEnvironment.from_img(cfg.lidar.map if osp.isabs(cfg.lidar.
        map) else osp.join(_module_, cfg.lidar.map))
    running = True
    while running:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                print('Closing the app.')
                running = False
        pygame.display.update()


if __name__ == '__main__':
    main()

from os import path as osp
from omegaconf import DictConfig
import hydra
import pygame

from lidar.environment import BuildEnvironment


_module_ = osp.dirname(osp.abspath(__file__))


@hydra.main(config_path="config", config_name="config")
def main(cfg: DictConfig):

    print("Setup environment.")
    env = BuildEnvironment.from_img(
        cfg.lidar.map if osp.isabs(cfg.lidar.map) else osp.join(_module_, cfg.lidar.map)
    )

    running = True
    while running:

        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                print("Closing the app.")
                running = False
        
        pygame.display.update()


if __name__ == "__main__":
    main()