Unload a plugin with pluginlib
Hi everyone,
i'm trying to manage a project with the adaptation of plugins and I created a node with the launch of multiple plugins with different parameters and I can't found in the API code a function to unload a plugin dynamically. I'd like not to use any nodelet because there are some specifications that I don't understand (The bond connection between every nodelets and all).
So is there a simple way to manage the plugin dynamically ?
Thx
Edit 1:
I tried to use the unloadLibraryForClass. It does not delete the object, it just tries to unload the library which is not what I want.
What I'm trying to do for example is to instantiate a plugin, delete it and instantiate it again with a different parameter. The destructor of the base class is virtual so I create a destructor for each of my plugin but it cannot be used because the plugin is of the base type. Same problem with the delete function.