-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrun_robo_winners.py
51 lines (42 loc) · 1.15 KB
/
run_robo_winners.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import sys
from pathlib import Path
from lbd_comp.evaluate_track2 import evaluate_track2
def run_robo_winners(input_args):
this_file_dir = Path(__file__).parent.absolute()
prize_winners_dir = this_file_dir.joinpath(
"data",
"ROBO",
"controllers",
"prize_winners",
)
trajectories_dir = this_file_dir.joinpath(
"data",
"ROBO",
"target_trajectories",
)
output_dir = this_file_dir.joinpath(
"output",
"robo_winners",
)
prize_winners = [
"Ajoo",
"TeamQ",
"jmunozb",
]
print("LearningByDoing: Track ROBO Final Results")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print()
for idx_w, w in enumerate(prize_winners):
rank = idx_w+1
print(f"Rank {rank}: {w}")
w_dir = f"{rank}_{w}"
robo_eval_results = evaluate_track2(
prize_winners_dir.joinpath(w_dir, "controller"),
trajectories_dir,
output_dir.joinpath(w_dir),
force_output=True,
verbose=False,
)
print()
if __name__ == "__main__":
run_robo_winners(sys.argv[1:])