Skip to content
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 malformed link material element #37

Merged
merged 1 commit into from
Jun 20, 2018
Merged

Fix malformed link material element #37

merged 1 commit into from
Jun 20, 2018

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Jun 18, 2018

The URDF "specification" ( http://wiki.ros.org/urdf ) and its "reference implementation" ( https://github.com/ros/urdfdom ) allow 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)

This should get rid of the terrible [ERROR] :: parseURDFMaterial : Impossible to parse URDF material, material black not found in model database. warnings when loading an iCub model generated with simmechanics-to-urdf .

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)
@traversaro traversaro changed the title Fix malformed material element Fix malformed link material element Jun 18, 2018
@traversaro
Copy link
Member Author

Friendly ping @diegoferigo @fiorisi

Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of it, it remained in the backlog for too long 🎉 🎉

@traversaro traversaro merged commit 1bd48b2 into master Jun 20, 2018
@traversaro traversaro deleted the fix/colors branch June 20, 2018 09:44
@traversaro
Copy link
Member Author

traversaro commented Jun 20, 2018

@diegoferigo @fiorisi Can we manually ask for a new generation of the icub-models repo after this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants