-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.m
44 lines (37 loc) · 1.06 KB
/
startup.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
%% startup.m
% *Summary:* Loads all necessary libraries and other files for simulation
% -----------
%
% Editor:
% OMAINSKA Marco - Doctoral Student, Cybernetics
% Supervisor:
% YAMAUCHI Junya - Assistant Professor
%
% Property of: Fujita-Yamauchi Lab, University of Tokyo, 2021
% e-mail: [email protected]
% Website: https://www.scl.ipc.i.u-tokyo.ac.jp
% January 2022
%
% ------------- BEGIN CODE -------------
% init core VPC-Library
run('vpc_library/startup.m')
% add project root folder
libDir = fileparts(mfilename('fullpath'));
addpath(libDir)
% create output directories if not yet existent
dirs = ["data", "images", "videos"];
for d = dirs
[~, ~, ~] = mkdir(fullfile(libDir,d));
end
% add paths to sub-dependencies
fprintf('Loading other libraries...\n')
dirs = ["data", "lib", "simulink", "ros"];
for d = dirs
addpath(genpath(fullfile(libDir,d)))
end
% clear variables
clear d dirs libDir
fprintf('[done]\n\n')
% -------------- END CODE --------------