How to delete models inside a plugin? Especially in Gazebo 2.2
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.
Asked by Illuminatur on 2015-10-13 03:10:40 UTC
Answers
You could publish an entity delete request, it should work on Gazebo 2.2:
transport::requestNoReply(this->node, "entity_delete", <entity name>);
Asked by chapulina on 2015-10-13 07:32:39 UTC
Comments