Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update loadReducedModel.m #5

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bindings/matlab/+iDynTreeWrappers/loadReducedModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
% GNU Lesser General Public License v2.1 or any later version.

%% ------------Initialization----------------
disp(['[loadReducedModel]: loading the following model: ',[modelPath,modelName]]);
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
Expand All @@ -45,7 +45,7 @@
modelLoader = iDynTree.ModelLoader();
reducedModel = modelLoader.model();

modelLoader.loadReducedModelFromFile([modelPath,modelName], jointList_idyntree);
modelLoader.loadReducedModelFromFile(fullfile(modelPath,modelName), jointList_idyntree);

% get the number of degrees of freedom of the reduced model
KinDynModel.NDOF = reducedModel.getNrOfDOFs();
Expand All @@ -59,5 +59,5 @@
% set the floating base link
KinDynModel.kinDynComp.setFloatingBase(KinDynModel.BASE_LINK);

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