diff --git a/launch/active_grasp.launch b/launch/active_grasp.launch index 9783ad0..dcafce5 100644 --- a/launch/active_grasp.launch +++ b/launch/active_grasp.launch @@ -2,7 +2,7 @@ - + diff --git a/config/active_grasp.yaml b/launch/active_grasp.yaml similarity index 100% rename from config/active_grasp.yaml rename to launch/active_grasp.yaml diff --git a/notebooks/print_metrics.py b/notebooks/print_metrics.py new file mode 100644 index 0000000..d2b9c58 --- /dev/null +++ b/notebooks/print_metrics.py @@ -0,0 +1,25 @@ +#%% +import pandas as pd + +#%% +logfile = "../logs/210712-132211_policy=top.csv" +df = pd.read_csv(logfile) + +#%% +metrics = [ + ("Runs", len(df.index)), + ("", ""), + ("Succeeded", (df.result == "succeeded").sum()), + ("Failed", (df.result == "failed").sum()), + ("Aborted", (df.result == "aborted").sum()), + ("", ""), + ("Success rate", round((df.result == "succeeded").mean(), 2)), + ("Mean time", round(df.exploration_time.mean(), 2)), + ("Mean distance", round(df.distance_travelled.mean(), 2)), + ("Mean viewpoints", round(df.viewpoint_count.mean())), +] + +for k, v in metrics: + print("{:<16} {:>8}".format(k, v)) + +# %%