Skip to content

Commit dd034b3

Browse files
committed
fixed a bug
1 parent 665d9d9 commit dd034b3

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

matlab_tool/TEST_plugin.m

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@
5151
% []);
5252

5353

54-
res_anatAttach_local
55-
res_anatAttach_ground
56-
res_effectAttach_ground
57-
res_effectAttach_local
58-
59-
res_anatAttach_local_val = sto2Mat(fullfile(validated_results_folder,'LOCAL_ANATOM_MuscleForceDirection_vectors.sto'));
60-
61-
res_anatAttach_ground.rowheaders
62-
res_effectAttach_ground
63-
res_effectAttach_local
54+
% res_anatAttach_local
55+
% res_anatAttach_ground
56+
% res_effectAttach_ground
57+
% res_effectAttach_local
58+
%
59+
% res_anatAttach_local_val = sto2Mat(fullfile(validated_results_folder,'LOCAL_ANATOM_MuscleForceDirection_vectors.sto'));
60+
%
61+
% res_anatAttach_ground.rowheaders
62+
% res_effectAttach_ground
63+
% res_effectAttach_local
6464
%--------------------------------------------------------------------------
6565
% %% test 1: simple arm26 model
6666
% osimModel_name = '../_test_data/Arm26/arm26.osim';
@@ -82,20 +82,20 @@
8282
%
8383
%
8484
%--------------------------------------------------------------------------
85-
% %% test 2: gait2392 model
86-
%
87-
% osimModel_name = '../_test_data/gait2392/subject01.osim';
88-
% IK_mot_file = '../_test_data/gait2392/subject01_walk1_ik.mot';
89-
% bodyOfInterest_name = 'femur_r';
90-
% bodyExpressResultsIn_name = [];
91-
% effective_attachm = 'true';
92-
% test_input = [];
93-
%
94-
% N_frame_test = 5;
95-
% muscleLinesOfActionStruct = getMuscleForceDirection(osimModel_name,...
96-
% IK_mot_file,...
97-
% bodyOfInterest_name,...
98-
% bodyExpressResultsIn_name,...
99-
% effective_attachm,...
100-
% 'true',...
101-
% []);
85+
%% test 2: gait2392 model
86+
87+
osimModel_name = '../_test_data/gait2392/subject01.osim';
88+
IK_mot_file = '../_test_data/gait2392/subject01_walk1_ik.mot';
89+
bodyOfInterest_name = 'femur_r';
90+
bodyExpressResultsIn_name = [];
91+
effective_attachm = 'true';
92+
test_input = [];
93+
94+
N_frame_test = 5;
95+
muscleLinesOfActionStruct = getMuscleForceDirection(osimModel_name,...
96+
IK_mot_file,...
97+
bodyOfInterest_name,...
98+
bodyExpressResultsIn_name,...
99+
effective_attachm,...
100+
'true',...
101+
[]);

matlab_tool/realizeMatStructKinematics.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444

4545
% correct if there are generalised coordinates not computed in IK (e.g.
4646
% models modified after running IK)
47-
% NB: not tested!!
4847
if ~out
4948
for n_m = 1:length(missing_coords_list)
49+
coordName = missing_coords_list{n_m};
5050
missing_coords_vals(n_m) = coordsModel.get(coordName).getDefaultValue;
5151
end
5252
else

0 commit comments

Comments
 (0)