-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix materials exported in URDF file #36
Comments
Until the issue is not solved in the icub models, see robotology/icub-models-generator#36 . Ugly workaround, but will permit to merge robotology-legacy/yarp-wholebodyinterface#63
When we fix this issue, we can revert this commit: robotology/idyntree@5e760ab . |
We checked this problem with @diegoferigo and apparently this line of |
I am a bit confused. By a quick check it seems that indeed this kind of "global scope for link material names" is not supported by the However, the iCub models seem to be correctly parsed by |
ciao @traversaro , do you agree with moving this issue to the backlog for now? |
Yes, I think it already easy is in the backlog de facto. |
ok, updated the pipeline. |
To be honest, I would simply suppress the warning in iDynTree until we found a way to fix the problem at the generator level. |
This is somehow related to #62 if I remember correctly. If colors are properly exported from the pipeline, the generator would not fill the model with these random colors. |
Another way to fix this is to make sure that the simmechanics-to-urdf converter does not emits malformed URDF files (referencing to non-existing colors) if the MaterialProp element is not present. |
The URDF specification allows to have a material element without a color child element, but only if the name of the color is specified in the model-wide material database. Otherwise, it is always necessary to specify the color of the material of the link. Fix robotology/icub-models-generator#36 See robotology/icub-models-generator#36 (comment)
Currently all the models exported using the creo --> simmechanics --> urdf workflow do not properly export materials.
For example if you load of today any URDF in iDynTree, you get the following warnings:
The text was updated successfully, but these errors were encountered: