-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitOffarmLab.m
More file actions
30 lines (25 loc) · 772 Bytes
/
Copy pathinitOffarmLab.m
File metadata and controls
30 lines (25 loc) · 772 Bytes
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
function initOffarmLab()
% initOffarmLab Initialize MATLAB path for offarmLab package
% Adds core/offarmLab and its key subfolders to the MATLAB path.
thisFilePath = mfilename('fullpath');
rootDir = fileparts(thisFilePath);
subFolders = { ...
'', ... % root
'utils', ...
'waves', ... % previously 'envs'
'viz', ...
'hydros', ...
'io', ...
'staticCables', ...
'integrates', ...
'forces' ...
};
for i = 1:numel(subFolders)
p = fullfile(rootDir, subFolders{i});
if exist(p, 'dir')
addpath(p);
end
end
% Optional: print a brief summary
% fprintf('[offarmLab] Initialized paths under: %s\n', rootDir);
end