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

Colors not being applied when pre-defined in URDF #210

Open
IDavGal opened this issue Sep 22, 2023 · 0 comments
Open

Colors not being applied when pre-defined in URDF #210

IDavGal opened this issue Sep 22, 2023 · 0 comments

Comments

@IDavGal
Copy link

IDavGal commented Sep 22, 2023

I'm having issues applying colors to a URDF-generated robot. The links use a material by name, previously defined in the URDF, but they don't appear in the simulation.
Defining the color in the first link that uses it, and then referencing it consecutively works, but my issue is regarding these lines of the importer.py, in which the <material> tag is parsed and the color definition is stored.

My urdf looks like:

  <material name="blue">
    <color rgba="0 0 1 1"/>
  </material>

  <link name"mylink" >
    <visual>
      <geometry>
        ...
      </geometry>
      <material name="blue" />
    </visual>
  </link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant