robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
176 stars 67 forks source link

Handle the case in which no mesh exist at all #678

Closed fjandrad closed 4 years ago

fjandrad commented 4 years ago

At the moment if the urdf does not contain any mesh file an error will be launched from getMeshes function when building the map variable. To fix we need to change

https://github.com/robotology/idyntree/blob/6671f9daa961c354decc5a9e38330d0090fbc90c/bindings/matlab/%2BiDynTreeWrappers/getMeshes.m#L78

to

map(count,:)=[{meshInfo(solids).meshFile},{linkName}];

fjandrad commented 4 years ago

Done in dde66f5e2d231e8a7fe92c36565747fdebb0d8e4