Robotics StackExchange | Archived questions

Reload sdf using gz does not update model

Hi,

I'm loading a model with:

$ gz model -m obstacle -f obstacle.sdf

The first time it loads the model correctly. The geometry of the object is a mesh. If I modify the mesh file obstacle.obj, then delete the first model and load it again, Gazebo still shows the original model:

$ gz model -m obstacle -d
$ gz model -m obstacle -f obstacle.sdf

I'm on Gazebo 9.0.0, with SDF 1.6.

I guess it has to do with Gazebo using a cached version of the mesh file instead of reloading it. Is there a way to force the reload of the mesh?

Thank you!

Simon.

Asked by artificialsimon on 2020-10-09 13:40:54 UTC

Comments

Answers