-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_ycbineoat.m
73 lines (67 loc) · 1.97 KB
/
run_ycbineoat.m
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%% Base parameters
params = struct();
videos = ["cracker_box_reorient", "cracker_box_yalehand0", ...
"sugar_box1", "sugar_box_yalehand0", ...
"mustard0", "mustard_easy_00_02", ...
"bleach0", "bleach_hard_00_03_chaitanya", ...
"tomato_soup_can_yalehand0"];
params.videoNumber = 1; %***********
params.skipPruning = false;
params.interp = false;
params.gt = false;
params.savename = "ycbineoat_" + string(params.videoNumber);
params.maxL = 8;
% for outliers
params.noiseBound_GRAPH = 0.005;
params.noiseBound_GNC = 0.005;
% for solver
params.velocityBound = 1.5;
params.translationBound = 2.5;
params.covar_measure_base = 0.01;
params.covar_velocity_base = 0.1;
params.covar_rotrate_base = 0.1;
ParamList = params;
%% Set param sweep
% ratios = [0.001, 1000];
% for r = ratios
% params2 = params;
% params2.savename = strrep(params2.savename + "_r" + string(r),'.','');
% params2.covar_velocity_base = r*params.covar_velocity_base;
% params2.covar_rotrate_base = r*params.covar_rotrate_base;
% ParamList = [ParamList; params2];
% end
%
% noisebounds = [0.02, 0.01, 0.005, 0.0025];
% for n = noisebounds
% params2 = params;
% params2.savename = strrep(params2.savename + "_ngra" + string(n),'.','');
% params2.noiseBound_GRAPH = n;
% params2.noiseBound_GNC = n;
% ParamList = [ParamList; params2];
% end
%
% noisebounds = [0.02, 0.05, 0.1];
% for n = noisebounds
% params2 = params;
% params2.savename = strrep(params2.savename + "_ngnc" + string(n),'.','');
% params.noiseBound_GNC = n;
% ParamList = [ParamList; params2];
% end
% videos = [7,8,9];
% for v = videos
% params2 = params;
% params2.videoNumber = v;
% params2.savename = "ycbineoat_" + string(v);
%
% if v == 9
% params2.noiseBound_GRAPH = 0.0025;
% params2.noiseBound_GNC = 0.0025;
% end
%
% ParamList = [ParamList; params2];
% end
%% Run!
for p = 1:length(ParamList)
par = ParamList(p);
ycbineoat(par)
end