Gazebo | Ignition | Community
Ask Your Question

Delete and (re)load a model

asked 2015-09-22 11:07:22 -0500

Gregwar gravatar image

updated 2015-09-22 11:07:56 -0500

Hello, I would like to do experiments programatically, where I:

  1. Load a (sdf) robot model
  2. Do some simulation with it
  3. Unload this model
  4. 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?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-09-23 19:34:01 -0500

scpeters gravatar image

We are currently reviewing a pull request that will fix this problem:

edit flag offensive delete link more

answered 2015-09-22 21:07:59 -0500

Jose Luis Rivero gravatar image

I was able to reproduce this problem in gazebo6 version 6.1.0 on Trusty. Could you please open an issue in the gazebo issue tracker:

edit flag offensive delete link more


Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-09-22 11:07:22 -0500

Seen: 2,536 times

Last updated: Sep 23 '15