Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

It's most likely not thread-safe to call the RemoveModel function on a world object from a thread other than the physics thread. In your case, you're trying to call it in a transport callback thread.

Instead, try connecting to the world update event and calling the function from that callback. See an example on this tutorial.