Delete and (re)load a model
Hello, I would like to do experiments programatically, where I:
- Load a (sdf) robot model
- Do some simulation with it
- Unload this model
- Go back to 1. with another model file
And this a LOT of times. However, I'm experiencing strange behaviours. For instance, if I do the following:
gz model -m robot -f /path/to/robot.sdf
gz model -m robot -d
gz model -m robot -f /path/to/robot.sdf
Gazebo freezes and crash.
It looks like that -d
doesn't actually deletes the model, since I can still see topics about it when gz topic -l
Do you have any idea?