Currently, on-demand library loading/unloading is hard-coded to false. This leads to the fact that libraries are unloaded on destruction of the ClassLoader instance, which can throw exceptions (see https://github.com/ros/pluginlib/pull/234).
In my use case I'd like to unload the libraries on-demand, so I do not have to deal with exceptions when the destructor of the ClassLoader instance is called.
This PR exposes the setting in the ClassLoader constructor. The default value is false for backwards compatibility.
Currently, on-demand library loading/unloading is hard-coded to
false
. This leads to the fact that libraries are unloaded on destruction of theClassLoader
instance, which can throw exceptions (see https://github.com/ros/pluginlib/pull/234).In my use case I'd like to unload the libraries on-demand, so I do not have to deal with exceptions when the destructor of the
ClassLoader
instance is called.This PR exposes the setting in the
ClassLoader
constructor. The default value isfalse
for backwards compatibility.