Gazebo lazy texture loading

asked 2015-06-03 08:35:01 -0500

mehdi gravatar image

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?

edit retag flag offensive close merge delete

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[33067BISOPROLOLRATIOPHARM10MGTAB100ST::package33067::visual. Object will appear white. Any hints???

mehdi gravatar imagemehdi ( 2015-06-03 09:38:18 -0500 )edit