Skip to content

Commit

Permalink
Update loadReducedModel.m
Browse files Browse the repository at this point in the history
Use "fullfile" matlab function to concatenate paths
  • Loading branch information
LoreMoretti authored and flferretti committed Dec 23, 2024
1 parent 5ea59c9 commit 3d08ead
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/matlab/+iDynTreeWrappers/loadReducedModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
%% ------------Initialization----------------
disp(['[loadReducedModel]: loading the following model: ',fullfile(modelPath,modelName)]);


% if DEBUG option is set to TRUE, all the wrappers will be run in debug
% mode. Wrappers concerning iDyntree simulator have their own debugger
KinDynModel.DEBUG = debugMode;
Expand Down Expand Up @@ -57,6 +58,7 @@

% set the floating base link
KinDynModel.kinDynComp.setFloatingBase(KinDynModel.BASE_LINK);
<<<<<<< HEAD

disp(['[loadReducedModel]: loaded model: ',fullfile(modelPath,modelName),', number of joints: ',num2str(KinDynModel.NDOF)]);

Expand All @@ -77,4 +79,8 @@
KinDynModel.dynamics.M_iDyntree = iDynTree.MatrixDynSize(KinDynModel.NDOF+6,KinDynModel.NDOF+6);
KinDynModel.dynamics.h_iDyntree = iDynTree.FreeFloatingGeneralizedTorques(KinDynModel.kinDynComp.model);
KinDynModel.dynamics.g_iDyntree = iDynTree.FreeFloatingGeneralizedTorques(KinDynModel.kinDynComp.model);
=======

disp(['[loadReducedModel]: loaded model: ',fullfile(modelPath,modelName),', number of joints: ',num2str(KinDynModel.NDOF)]);
>>>>>>> b24f51530 (Update loadReducedModel.m)
end

0 comments on commit 3d08ead

Please sign in to comment.