-
Notifications
You must be signed in to change notification settings - Fork 67
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 Matlab-only visualizer to make the use of meshFilePrefix optional #799
Comments
I think that for this version using the fact that if one specifies
would still work, or that will creates problems in parsing the varargin arguments ? Asking to MATLAB experts here @nunoguedelha @CarlottaSartore @Giulero @singhbal-baljinder @gabrielenava |
If I understood the problem, I think as it is written now it will create problems if we remove the variable |
Yes, my question is: if we remove the
to
Will existing code like: [visualizer,objects]=iDynTreeWrappers.prepareVisualization(KinDynModel,meshFilePrefix,...
'color',[1,1,1],'transparency',1, 'name', ['Plot frame ', robotName], 'reuseFigure', 'name'); continue to work as
and then when we remove support for |
I this case again at a first glance, I think the varargin will still work. Provided that this line that parses all function inputs is properly adjusted:
In particular, the MATLAB parse function is used, and all the inputs are saved in |
Good point, the meshFilePrefix string will probably just go in |
Hi longtime no see. Probably not relevant anymore since you want to deprecate meshfileprefix , but I tested the matlab bindings today using the docker image meshFilePrefix =
"~/../../iit/sources/robotology-superbuild/build/install/share"
Error using stlread (line 23)
File name must be a string scalar or character vector.
Error in iDynTreeWrappers.getMeshes (line 52)
mesh_triangles = stlread([meshFilePrefix meshFile]);
Error in iDynTreeWrappers.prepareVisualization (line 74)
[linkMeshInfo,map]=iDynTreeWrappers.getMeshes(model,meshFilePrefix);
Error in testidyntree (line 76)
[visualizer,objects]=iDynTreeWrappers.prepareVisualization(KinDynModel,meshFilePrefix,... Solved it by simply changing
Probably not worth making a commit for it but it makes me think stlread might have changed its behavior or the concatenation works differently now ( which would be odd ). So this is just a heads up. |
Hi @fjandrad, thanks for reporting this. Probably we could move that to a separate issue. cc @CarlottaSartore |
The Matlab-only visualizer in
idyntree/bindings/matlab/+iDynTreeWrappers/getMeshes.m
Line 46 in 50f5879
meshFilePrefix
is set to the default value (empty?).We should also deprecate the
meshFilePrefix
option, so that we can remove it in iDynTree 3.The text was updated successfully, but these errors were encountered: