PLUGINLIB_EXPORT_CLASS vs PLUGINLIB_REGISTER_CLASS
I am following the tutorial for Diagnostic Analyzers. In the source file there's the macro PLUGINLIB_REGISTER_CLASS
, which seems to be deprecated under ros noetic, the only one I can find in class_list_macros.h
is PLUGINLIB_EXPORT_CLASS
. Are these interchangeable? If not, what would be the right usage in this tutorial? There is not much information given on this aspect.
Thanks!
Asked by labude on 2022-04-29 08:21:21 UTC
Answers
Yes, you need to replace PLUGINLIB_REGISTER_CLASS with PLUGINLIB_EXPORT_CLASS in the source code, and IIRC there is a small change in the arguments. The new usage is explained here:
http://wiki.ros.org/pluginlib#pluginlib.2Fpluginlib_groovy.Registering.2FExporting_a_Plugin
Asked by Mike Scheutzow on 2022-04-29 12:10:00 UTC
Comments
Why have you tagged this question
hydro
?Asked by Mike Scheutzow on 2022-04-29 12:18:50 UTC
Must have been a mistake.
Asked by labude on 2022-05-02 03:35:56 UTC