leaderboard/leaderboard/leaderboard_evaluator.py
def _load_and_wait_for_world(self, args, town, ego_vehicles=None):
        """
        Load a new CARLA world and provide data to CarlaDataProvider
        """

        self.world = self.client.load_world(town)
        settings = self.world.get_settings()
        settings.fixed_delta_seconds = 1.0 / self.frame_rate
        settings.synchronous_mode = True
        self.world.apply_settings(settings)

        self.world.reset_all_traffic_lights()

        CarlaDataProvider.set_client(self.client)
        CarlaDataProvider.set_world(self.world)
        CarlaDataProvider.set_traffic_manager_port(int(args.trafficManagerPort))

        self.traffic_manager.set_synchronous_mode(True)
        self.traffic_manager.set_random_device_seed(int(args.trafficManagerSeed))

        # Wait for the world to be ready
        if CarlaDataProvider.is_sync_mode():
            self.world.tick()
        else:
            self.world.wait_for_tick()

        if CarlaDataProvider.get_map().name != town:
            raise Exception("The CARLA server uses the wrong map!"
                            "This scenario requires to use map {}".format(town))

        Load a new CARLA world and provide data to CarlaDataProvider
        
Load a new CARLA world and provide data to CarlaDataProvider
Load a new CARLA world and provide data to CarlaDataProvider
def _load_and_wait_for_world(self, args, town, ego_vehicles=None):
        self.world = self.client.load_world(town)
        settings = self.world.get_settings()
        settings.fixed_delta_seconds = 1.0 / self.frame_rate
        settings.synchronous_mode = True
        self.world.apply_settings(settings)
        self.world.reset_all_traffic_lights()
        CarlaDataProvider.set_client(self.client)
        CarlaDataProvider.set_world(self.world)
        CarlaDataProvider.set_traffic_manager_port(int(args.trafficManagerPort))
        self.traffic_manager.set_synchronous_mode(True)
        self.traffic_manager.set_random_device_seed(int(args.trafficManagerSeed))
        if CarlaDataProvider.is_sync_mode():
            self.world.tick()
        else:
            self.world.wait_for_tick()
        if CarlaDataProvider.get_map().name != town:
            raise Exception("The CARLA server uses the wrong map!"
                            "This scenario requires to use map {}".format(town))
def _load_and_wait_for_world ( self , args , town , ego_vehicles = None ) : self . world = self . client . load_world ( town ) settings = self . world . get_settings ( ) settings . fixed_delta_seconds = 1.0 / self . frame_rate settings . synchronous_mode = True self . world . apply_settings ( settings ) self . world . reset_all_traffic_lights ( ) CarlaDataProvider . set_client ( self . client ) CarlaDataProvider . set_world ( self . world ) CarlaDataProvider . set_traffic_manager_port ( int ( args . trafficManagerPort ) ) self . traffic_manager . set_synchronous_mode ( True ) self . traffic_manager . set_random_device_seed ( int ( args . trafficManagerSeed ) ) if CarlaDataProvider . is_sync_mode ( ) : self . world . tick ( ) else : self . world . wait_for_tick ( ) if CarlaDataProvider . get_map ( ) . name != town : raise Exception ( "The CARLA server uses the wrong map!" "This scenario requires to use map {}" . format ( town ) )
Load a new CARLA world and provide data to CarlaDataProvider
Load a new CARLA world and provide data to CarlaDataProvider
"""
        Load a new CARLA world and provide data to CarlaDataProvider
        """ # Wait for the world to be ready
self
args
town
ego_vehicles