Update Matlab high-level wrappers #1199
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @traversaro, I have realized that in the end we never merged the optimization of the iDynTree high level Matlab wrappers in
master
. Following the old PR #744 I have:master
;loadReducedModel.m
:Besides the alignment of formatting style and the removal of trailing spaces, the main change is that every time the iDynTree wrappers are called, instead of creating a new object of the corresponding iDynTree class, updating it, then returning its content to matlab, they now directly update an already existing object which is created when
loadReducedModel.m
is called. This can save some computation time especially if a wrapper is called many times in the code. The change should not require any update of existing applications that use the wrappers.We may try again to merge this changes in master! Let me know what you think about it.