clemense / yourdfpy

Python parser for URDFs
MIT License
122 stars 13 forks source link

Apply visual colors when available #6

Closed stephane-caron closed 2 years ago

stephane-caron commented 2 years ago

If I understand correctly, visual materials are currently read and written but not rendered. Loading e.g. the Upkie URDF we get the dark "ninja" version:

upkie-ninja

Trimesh can render materials so getting them to yourdfpy is a matter of plugging the right info. This PR starts to do so:

upkie-colored-chassis

For now it only works for materials that contain an actual color tag (i.e. no named materials).