forked from marynelv/IVCalibrationToolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
experimentPQVTRGBB.m
66 lines (49 loc) · 2.04 KB
/
experimentPQVTRGBB.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
plotFlag = 0;
nRuns = 50;
expDistanceError = [];
expOrientationError = [];
expVelocityError = [];
expPicError = [];
expQicError = [];
expGravityError = [];
expBiasAccelError = [];
expBiasGyroError = [];
fprintf('Run ... ');
for r=1:nRuns
fprintf('%d',r);
pqvtrgbbUKF
expDistanceError = [expDistanceError distanceError'];
expOrientationError = [expOrientationError orientationError'.*180/pi];
expVelocityError = [expVelocityError velocityError'];
expPicError = [expPicError picError'];
expQicError = [expQicError qicError'.*180/pi];
expGravityError = [expGravityError gravityError'];
expBiasAccelError = [expBiasAccelError biasAccelError'];
expBiasGyroError = [expBiasGyroError biasGyroError'];
if (r<nRuns), fprintf(', '); end
end
fprintf(' done\n');
meanDistanceError = mean(expDistanceError,2);
stdDistanceError = std(expDistanceError,0,2);
meanOrientationError = mean(expOrientationError,2);
stdOrientationError = std(expOrientationError,0,2);
meanVelocityError = mean(expVelocityError,2);
stdVelocityError = std(expVelocityError,0,2);
meanPicError = mean(expPicError,2);
stdPicError = std(expPicError,0,2);
meanQicError = mean(expQicError,2);
stdQicError = std(expQicError,0,2);
meanGravityError = mean(expGravityError,2);
stdGravityError = std(expGravityError,0,2);
meanBiasAccelError = mean(expBiasAccelError,2);
stdBiasAccelError = std(expBiasAccelError,0,2);
meanBiasGyroError = mean(expBiasGyroError,2);
stdBiasGyroError = std(expBiasGyroError,0,2);
save('results/experimentPQVTRGBB.mat', ...
'expDistanceError','expOrientationError','expVelocityError',...
'expPicError','expQicError','expGravityError','expBiasAccelError',...
'expBiasGyroError','meanDistanceError','stdDistanceError',...
'meanOrientationError','stdOrientationError','meanVelocityError',...
'stdVelocityError','meanPicError','stdPicError','meanQicError',...
'stdQicError','meanGravityError','stdGravityError','meanBiasAccelError',...
'stdBiasAccelError','meanBiasGyroError','stdBiasGyroError');