Skip to content
Snippets Groups Projects
Commit 81981141 authored by odri's avatar odri
Browse files

Tweak mpc comparison script

parent 7a2201e5
No related branches found
No related tags found
No related merge requests found
......@@ -58,12 +58,14 @@ def compute_RMSE(array, norm):
##############
# [Linear, Non Linear, Planner, OSQP]
MPCs = [True, True, True, True] # Boolean to choose which MPC to plot
MPCs = [True, True, True, False] # Boolean to choose which MPC to plot
MPCs_names = ["No FF", "-afeet", "JT fmpc + M ddq", "Free flyer + Tasks"]
name_files = ["data_2021_08_27_16_08_0.npz", "data_2021_08_27_15_53_0.npz", "data_2021_08_27_15_42_0.npz", "data_2021_08_27_15_44_0.npz"] # Names of the files
name_files = ["data_2021_09_02_16_51_0.npz", "data_2021_09_02_16_53_0.npz", "data_2021_09_02_16_55_0.npz", "data_2021_09_02_17_52_0.npz"] # Names of the files
folder_path = "" # Folder containing the 4 .npz files
name_files = ["data_2021_09_16_18_08_0.npz", "data_2021_09_16_18_12_0.npz", "data_2021_09_16_18_20_0.npz", "data_2021_09_16_18_12_0.npz"]
# Common data shared by 4 MPCs
params = lqrw.Params() # Object that holds all controller parameters
logs = np.load(folder_path + name_files[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment