Idyntree: Matlab visualization in broken on ``devel``

Created on 12 Nov 2020  路  5Comments  路  Source: robotology/idyntree

By running visualizeRobot.m, it exits with the following error:

Unrecognized method, property, or field 'linkSolidShapes' for class 'iDynTree.ModelSolidShapes'.

Error in SwigRef/subsref (line 26)
            [varargout{1}] = builtin('subsref',self,substruct('.',s.subs,'()',{}));

Error in iDynTreeWrappers.getMeshes (line 25)
linkSolidShapesV=visual.linkSolidShapes;

Error in iDynTreeWrappers.prepareVisualization (line 74)
[linkMeshInfo,map]=iDynTreeWrappers.getMeshes(model,meshFilePrefix);

Error in visualizeRobot (line 84)
[visualizer,objects]=iDynTreeWrappers.prepareVisualization(KinDynModel,meshFilePrefix,...

I guess this is due to #751
@nunoguedelha @gabrielenava @Giulero @CarlottaSartore

All 5 comments

Hi @S-Dafarra! I faced the same issue. It seems that in devel some methods acquired the get prefix.
Changing from linkSolidShape to getLinkSolidShape should work.

Hi @S-Dafarra! I faced the same issue. It seems that in devel some methods acquired the get prefix.
Changing from linkSolidShape to getLinkSolidShape should work.

Ah great! If you could fill in a PR for that, it would be great

Ah great! If you could fill in a PR for that, it would be great

I was planning it :D

I guess this is due to #751

Exactly, the method were deprecated in https://github.com/robotology/idyntree/pull/739, but unfortunately the deprecation are not easy to detect on MATLAB.

Was this page helpful?
0 / 5 - 0 ratings