parameters: (self, carla_world, hud, args)
docstring: Constructor method
docstring_summary: Constructor method
docstring_tokens: Constructor method
function: def __init__(self, carla_world, hud, args):
          """Constructor method"""
          self._args = args
          self.world = carla_world
          try:
              self.map = self.world.get_map()
          except RuntimeError as error:
              print('RuntimeError: {}'.format(error))
              print('  The server could not send the OpenDRIVE (.xodr) file:')
              print('  Make sure it exists, has the same name of your town, and is correct.')
              sys.exit(1)
          self.hud = hud
          self.player = None
          self.collision_sensor = None
          self.lane_invasion_sensor = None
          self.gnss_sensor = None
          self.camera_manager = None
          self._weather_presets = find_weather_presets()
          self._weather_index = 0
          self._actor_filter = args.filter
          self.restart(args)
          self.world.on_tick(hud.on_world_tick)
          self.recording_enabled = False
          self.recording_start = 0
function_tokens: def __init__ ( self , carla_world , hud , args ) : self . _args = args self . world = carla_world try : self . map = self . world . get_map ( ) except RuntimeError as error : print ( 'RuntimeError: {}' . format ( error ) ) print ( '  The server could not send the OpenDRIVE (.xodr) file:' ) print ( '  Make sure it exists, has the same name of your town, and is correct.' ) sys . exit ( 1 ) self . hud = hud self . player = None self . collision_sensor = None self . lane_invasion_sensor = None self . gnss_sensor = None self . camera_manager = None self . _weather_presets = find_weather_presets ( ) self . _weather_index = 0 self . _actor_filter = args . filter self . restart ( args ) self . world . on_tick ( hud . on_world_tick ) self . recording_enabled = False self . recording_start = 0