-
Notifications
You must be signed in to change notification settings - Fork 14
/
GetFileNames.m
61 lines (51 loc) · 2.24 KB
/
GetFileNames.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
%% Get the filenames of the mocap data
% made by Terry Taewoong Um ([email protected])
% Adaptive Systems Lab., University of Waterloo
function [AsfFilename AmcFilename] = GetFileNames(str)
% Jump : trial #2 is presented in the figure of the paper
if strcmp(str, 'jump')
AsfFilename = 'MocapData\118.asf';
AmcFilename = [];
for ii_file=1:30
if ii_file<10
AmcFileName_temp = ['MocapData\118_0' int2str(ii_file) '.amc'];
else
AmcFileName_temp = ['MocapData\118_' int2str(ii_file) '.amc'];
end
AmcFilename = [AmcFilename; AmcFileName_temp];
end
% Soccer Kicking : trial #2 is presented in the figure of the paper
elseif strcmp(str, 'soccer')
AmcFilename = [];
AsfFilename = 'MocapData\10.asf';
AmcFilename = ['MocapData\10_01.amc'; 'MocapData\10_02.amc';'MocapData\10_03.amc'; ...
'MocapData\10_05.amc'; 'MocapData\10_06.amc'];
% BaseBall : trial #1 is presented in the figure of the paper
elseif strcmp(str, 'baseball')
AmcFilename = [];
AsfFilename = 'MocapData\124.asf';
AmcFilename = ['MocapData\124_01.amc'; 'MocapData\124_02.amc';'MocapData\124_03.amc'];
% Golf : trial #1 is presented in the figure of the paper
elseif strcmp(str, 'golf')
AmcFilename = [];
AsfFilename = 'MocapData\64.asf';
for ii_file=1:9
AmcFileName_temp = ['MocapData\64_0' int2str(ii_file) '.amc'];
AmcFilename = [AmcFilename; AmcFileName_temp];
end
AmcFilename = [AmcFilename; ['MocapData\64_10.amc']];
% wash windows, paint figure eights; hand signals
elseif strcmp(str, 'nonsporting1')
AmcFilename = [];
AsfFilename = 'MocapData\15.asf';
AmcFilename = ['MocapData\15_11.amc'];
% walk, jump, etc.
elseif strcmp(str, 'nonsporting2')
AmcFilename = [];
AsfFilename = 'MocapData\86.asf';
AmcFilename = ['MocapData\86_02.amc'];
else
fprintf('Fail to load the filename');
return;
end
end