src/nodes/src/test_env.cpp
// Removes a model from the Gazebo environment
Removes a model from the Gazebo environment
Removes a model from the Gazebo environment
bool Model::delete_model(std::string model_name) {
        ros::ServiceClient deleteModel = node_handle.serviceClient<gazebo_msgs::DeleteModel>("gazebo/delete_model");
        deleteModel.waitForExistence();
        gazebo_msgs::DeleteModel srv;
        srv.request.model_name = model_name;
        deleteModel.call(srv);
        return srv.response.success;
    }
bool Model :: delete_model ( std :: string model_name ) { ros :: ServiceClient deleteModel = node_handle . serviceClient < gazebo_msgs :: DeleteModel > ( " " ) ; deleteModel . waitForExistence ( ) ; gazebo_msgs :: DeleteModel srv ; srv . request . model_name = model_name ; deleteModel . call ( srv ) ; return srv . response . success ; }
Removes a model from the Gazebo environment
Removes a model from the Gazebo environment