parser = argparse.ArgumentParser(description=description) parser.add_argument('-t', '--town', default='Town01', help='The town name to be used') parser.add_argument('-o', '--output', default='routes_test.xml', help='The outputfile route') arguments = parser.parse_args() if not check_test_server(6666): start_test_server(6666) print(" WAITING FOR DOCKER TO BE STARTED") client = carla.Client('localhost', 6666) client.set_timeout(30.0) world = client.load_world(arguments.town) spawn_points = world.get_map().get_spawn_points() print(spawn_points) view_start_positions(world, spawn_points) selected_pos = [[10, 54], [53, 11], [48, 7], [61, 71], [74, 62], [50, 79], [75, 49], [80, 53], [80, 50], [60, 80], [83, 61], [94, 72], [43, 74], [13, 66], [89, 64], [15, 70], [11, 59], [15, 94], [41, 7], [33, 13], [67, 43], [26, 10], [7, 29], [97, 100],
if __name__ == '__main__': # PORT 6666 is the default port for testing server root = logging.getLogger() root.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stdout) handler.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) root.addHandler(handler) if not check_test_server(4444): print(" WAITING FOR DOCKER TO BE STARTED") start_test_server(4444) #if os.path.exists(os.path.join(os.environ["SRL_DATASET_PATH"], 'sample_benchmark2')): # shutil.rmtree(os.path.join(os.environ["SRL_DATASET_PATH"], 'sample_benchmark2')) #test_distance_intersection_speed(world) # The idea is that the agent class should be completely independent #test_1_collect() # Auto Cleanup test_1_benchmark() # this could be joined # THe experience is built, the files necessary #test_2_benchmark()
help='The town name to be used') parser.add_argument('-o', '--output', default=None, help='The outputfile route') parser.add_argument('-v', '--view', default=None, help='The path to where things are placed ') arguments = parser.parse_args() if not check_test_server(6669): start_test_server(6669, docker_name='carlaped') print(" WAITING FOR DOCKER TO BE STARTED") client = carla.Client('localhost', 6669) print("\n\n SAVY4 \n\n") client.set_timeout(30.0) if arguments.output is None and arguments.view is None: raise ValueError("Both output and view are None ") if arguments.output is None: file_identification = arguments.view else: file_identification = arguments.output # We set the file names for all the cases
if __name__ == '__main__': # PORT 6666 is the default port for testing server root = logging.getLogger() root.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stdout) handler.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) root.addHandler(handler) if not check_test_server(6666): print(" WAITING FOR DOCKER TO BE STARTED") start_test_server(6666, gpu=5) #client = carla.Client('localhost', 6666) #client.set_timeout(45.0) #world = client.load_world('Town01') if os.path.exists( os.path.join(os.environ["COIL_DATASET_PATH"], 'sample_benchmark')): shutil.rmtree( os.path.join(os.environ["COIL_DATASET_PATH"], 'sample_benchmark')) #test_distance_intersection_speed(world) # The idea is that the agent class should be completely independent print(" First construction") test_1_construct() if os.path.exists(
) parser = argparse.ArgumentParser(description=description) parser.add_argument('-t', '--town', default='Town01', help='The town name to be used') parser.add_argument('-o', '--output', default='routes_test.xml', help='The outputfile route') arguments = parser.parse_args() free_port = find_free_port() if not check_test_server(free_port): start_test_server(free_port, gpu=0, docker_name='carlaped') print(" WAITING FOR DOCKER TO BE STARTED") client = carla.Client('localhost', free_port) client.set_timeout(25.0) world = client.load_world(arguments.town) print('World loaded') make_routes(arguments.output, world)