ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The C++ API docs list a int pluginlib::ClassLoader<T>::unloadLibraryForClass(const std::string &lookup_name) method:

Decrements the counter for the library containing a class with a given name and attempts to unload it if the counter reaches zero.

That should do what you want, but only in the case that no other users of the library still hold on to it.