Custom urdf file not showing color

Hi,

I was trying to load a custom URDF file with gym.load_asset function, and the color I specified in the URDF file is not loaded into the environment. I have to use gym.set_rigid_body_color to change the colors. Is this expected?

Hi @hghg,

We’re looking into this further and will get back to you when we have more info.

Take care,
-Gav

Hi @hghg,

We should have fixes for this in an upcoming release.

Take care,
-Gav

I also noticed that if you try to manually set the color with set_rigid_body_colorit will change the color of the base link in the URDF but not any of the other links. For example, I had made a box with a base and four walls around the side where the walls each have the base as its parent link. When I set the color only the base link gets the color and the children links remain white.

1 Like