Skip to content

Commit

Permalink
Added more debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirza Shah committed Jan 10, 2013
1 parent 1d925ab commit f684438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pluginlib/class_list_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @param - base_class_type - The real base class type from which class_type inherits
*/
#define PLUGINLIB_REGISTER_CLASS(class_name, class_type, base_class_type) \
CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(class_type, base_class_type, "pluginlib WARNING: PLUGINLIB_REGISTER_CLASS is deprecated, please use PLUGINLIB_EXPORT_CLASS instead. You can run the script 'plugin_macro_update' provided with pluginlib in your package source folder to automatically and recursively update legacy macros.")
CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(class_type, base_class_type, "pluginlib WARNING: PLUGINLIB_REGISTER_CLASS is deprecated, please use PLUGINLIB_EXPORT_CLASS instead. You can run the script 'plugin_macro_update' provided with pluginlib in your package source folder to automatically and recursively update legacy macros. Base = base_class_type, Derived = derived_class_type")

/**
* @macro This version is the most in use and requires package name in addition to fields in PLUGINLIB_REGISTER_CLASS
Expand All @@ -56,7 +56,7 @@
* @param - base_class_type - The real base class type from which class_type inherits
*/
#define PLUGINLIB_DECLARE_CLASS(pkg, class_name, class_type, base_class_type) \
CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(class_type, base_class_type, "pluginlib WARNING: PLUGINLIB_DECLARE_CLASS is deprecated, please use PLUGINLIB_EXPORT_CLASS instead. You can run the script 'plugin_macro_update' provided with pluginlib in your package source folder to automatically and recursively update legacy macros.")
CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(class_type, base_class_type, "pluginlib WARNING: PLUGINLIB_DECLARE_CLASS is deprecated, please use PLUGINLIB_EXPORT_CLASS instead. You can run the script 'plugin_macro_update' provided with pluginlib in your package source folder to automatically and recursively update legacy macros. Base = base_class_type, Derived = derived_class_type")

/**
* @macro This version was only made possible with pluginlib 1.9 series. It's the easiest to use and now the official way of exporting classes.
Expand Down
3 changes: 3 additions & 0 deletions include/pluginlib/class_loader_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ namespace pluginlib
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.
/***************************************************************************/
{
ROS_DEBUG("pluginlib::ClassLoader: Creating ClassLoader, base = %s, address = %p", base_class.c_str(), this);
classes_available_ = determineAvailableClasses();
ROS_DEBUG("pluginlib::ClassLoader: Finished constructring ClassLoader, base = %s, address = %p", base_class.c_str(), this);
}

template <class T>
ClassLoader<T>::~ClassLoader()
/***************************************************************************/
{
ROS_DEBUG("pluginlib::ClassLoader: Destroying ClassLoader, base = %s, address = %p", getBaseClassType().c_str(), this);
}

template <class T>
Expand Down

0 comments on commit f684438

Please sign in to comment.