Gazebo | Ignition | Community
Ask Your Question

How to delete models inside a plugin? Especially in Gazebo 2.2

asked 2015-10-13 03:10:40 -0600

Illuminatur gravatar image

Dear community,

according to the Pull Request 1106 there is a way of deleting models from inside a plugin. For Gazebo>3 there are the following public methods:

public: void RemoveModel(ModelPtr _model);
public: void RemoveModel(const std::string &_name);

Is there any alternative deleting models from inside a plugin in Gazebo 2?

With best regards.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-13 07:32:39 -0600

chapulina gravatar image

You could publish an entity delete request, it should work on Gazebo 2.2:

transport::requestNoReply(this->node, "entity_delete", <entity name>);
edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-10-13 03:10:40 -0600

Seen: 2,254 times

Last updated: Oct 13 '15