From 9e2cff2496e4d4f1ce8fd00a72b7c1ef7f6fa0d7 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 3 Apr 2016 09:31:40 +0200 Subject: [PATCH] enable on-demand unloading --- include/pluginlib/class_loader_imp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pluginlib/class_loader_imp.h b/include/pluginlib/class_loader_imp.h index b2fd8f98..d69309df 100644 --- a/include/pluginlib/class_loader_imp.h +++ b/include/pluginlib/class_loader_imp.h @@ -55,7 +55,7 @@ namespace pluginlib package_(package), base_class_(base_class), attrib_name_(attrib_name), - lowlevel_class_loader_(false) //NOTE: The parameter to the class loader enables/disables on-demand class loading/unloading. Leaving it off for now...libraries will be loaded immediately and won't be unloaded until class loader is destroyed or force unload. + lowlevel_class_loader_(true) // Enable on-demand class loading/unloading /***************************************************************************/ { ROS_DEBUG_NAMED("pluginlib.ClassLoader","Creating ClassLoader, base = %s, address = %p", base_class.c_str(), this);