-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_protocol1
executable file
·34 lines (26 loc) · 940 Bytes
/
run_protocol1
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
#!/usr/bin/octave -qf
%%beat is the folder containing all the functions needed for the BEAT project PI algos
addpath("beat/Functions")
addpath("beat/AdditionalFunctions")
arg_list = argv ();
if nargin != 4
printf ("ERROR: Provided %d parameters, but expecting 4\n", nargin)
printf ("Usage:\n")
printf ("\t run_protocol1 jointAngle.csv platformData.csv emg.csv out_folder\n")
exit(1)
endif
printf ("csv file: %s\n", arg_list{1});
printf ("platform data: %s\n", arg_list{2});
printf ("emg data : %s\n", arg_list{3});
printf ("result folder : %s\n", arg_list{4});
if ~exist(arg_list{4}, 'dir')
error ("ERROR: folder %s does not exist", arg_list{4});
endif
pkg load io
pkg load signal
pkg load linear-algebra
printf("Running kinematic_routine_walking\n")
kinematic_routine_walking(arg_list{1}, arg_list{2}, arg_list{4});
printf("Running EMG routine\n")
EMG_routine(arg_list{3}, arg_list{2}, arg_list{4});
printf("All Done \n")