Can't load texture using mjcf importer in python but works well for GUI

Isaac Sim Version

4.1.0

Operating System

Ubuntu 20.04

GPU Information

  • Model:
  • Driver Version:

Topic Description

Detailed Description

Hi, i try to use mjcf importer with example python code. But the texture cannot be loaded. While it works well if i do not use python but GUI

Screenshots or Videos

##loading with python compared with loading with GUI button

Have you also noticed the issue with the ‘nv_ant.xml’ MJCF file used in the example Python code?

No, it works well for nv_ant.xml because the texture for ant is RGB value instead of image file. For the kitchen scene in my case, the texture in the xml is like:

material name=“counter_1_front_group_counter_base” texture=“flat/dark_blue” shininess=“0.1” reflectance=“0.1”/>

So the conclusion is texture file ‘flat/dark_blue’ cannot be loaded through python code.

Cry. Could anyone help?