Robotics StackExchange | Archived questions

Gazebo lazy texture loading

I am loading a box with a texture from an image. The box is defined in a .sdf file pointing to a .material file where my texture is defined. I need to spawn multiple boxes with different texture so what I did is just changing the texture image (keeping the same filename) and spawning again the same box. The problem is that Gazebo keep using the same texture that was used with the first box. How could I fix that?

Asked by mehdi on 2015-06-03 08:35:01 UTC

Comments

I am now trying to dynamically change all the parameters, changing the material name, the image name in the .material file and the material name and link name in my .sdf file then Spawn again. It works for the first box but then I keep getting the error "Warning [Visual.cc:820] Unable to get Material[PackageInfo33067/Image] for Geometry[33067_BISOPROLOL_RATIOPHARM_10MG_TAB_100ST::package_33067::visual. Object will appear white. Any hints???

Asked by mehdi on 2015-06-03 09:38:18 UTC

did you manage to find a solution for that ? I tried exactly the same: changing the collada texture path between different imports, i'm still stuck with the first material. The only way I could find is by editing the uri path to a copy

Asked by ejalaa12 on 2020-03-23 16:41:14 UTC

Answers