Origin = int(2 * 1000 / 300. * 300 / 5) Mult = 1000 / 300. * 50 / 5 # ####################################### ############################## # if 'N' not in locals(): print("Loading trajectory data . . .") N = lo(trajectory_data_location) if 'the_arenas' not in locals(): print("Creating arenas . . .") arenas_tmp_lst = [ Potential_Fields.Direct_Arena_Potential_Field(Origin, Mult, markers), Potential_Fields.Play_Arena_Potential_Field(Origin, Mult, markers), Potential_Fields.Follow_Arena_Potential_Field(Origin, Mult, markers), Potential_Fields.Furtive_Arena_Potential_Field(Origin, Mult, markers) ] the_arenas = {} for a in arenas_tmp_lst: the_arenas[a['type']] = a cars = {} for car_name in ['Mr_Black', 'Mr_Silver', 'Mr_Yellow', 'Mr_Orange', 'Mr_Blue']: cars[car_name] = Cars.Car(N, car_name, Origin, Mult, markers) # ############################### ####################################### #
Origin = int(2*1000/300.*300 / 5) Mult = 1000/300.*50 / 5 # ####################################### ############################## # if 'N' not in locals(): print("Loading trajectory data . . .") N = lo(trajectory_data_location) if 'the_arenas' not in locals(): print("Creating arenas . . .") warp_image = True arenas_tmp_lst = [Potential_Fields.Direct_Arena_Potential_Field(Origin,Mult,markers,warp_image=warp_image), Potential_Fields.Play_Arena_Potential_Field(Origin,Mult,markers,warp_image), Potential_Fields.Follow_Arena_Potential_Field(Origin,Mult,markers,warp_image), Potential_Fields.Furtive_Arena_Potential_Field(Origin,Mult,markers,warp_image)] the_arenas = {} for a in arenas_tmp_lst: the_arenas[a['type']] = a cars = {} for car_name in ['Mr_Black','Mr_Silver','Mr_Yellow','Mr_Orange','Mr_Blue']: cars[car_name] = Cars.Car(N,car_name,Origin,Mult,markers) # ############################### ####################################### # USE_CAFFE = True