Reload sdf using gz does not update model

asked 2020-10-09 13:40:54 -0500

artificialsimon gravatar image

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.

edit retag flag offensive close merge delete