Home | Tutorials | Wiki | Issues
Ask Your Question
2

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
0

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

scpeters gravatar image

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

https://bitbucket.org/osrf/gazebo/pull-requests/1886/issue-1702-for-gazebo6/diff

edit flag offensive delete link more
0

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: https://bitbucket.org/osrf/gazebo/issues

edit flag offensive delete link more

Comments

Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 2,180 times

Last updated: Sep 23 '15