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

PLUGINLIB_EXPORT_CLASS vs PLUGINLIB_REGISTER_CLASS

asked 2022-04-29 08:21:21 -0500

labude gravatar image

updated 2022-05-02 03:40:43 -0500

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!

edit retag flag offensive close merge delete

Comments

Why have you tagged this question hydro?

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-04-29 12:18:50 -0500 )edit

Must have been a mistake.

labude gravatar image labude  ( 2022-05-02 03:35:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-04-29 12:10:00 -0500

Mike Scheutzow gravatar image

updated 2022-04-29 12:17:26 -0500

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#pluginl...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-04-29 08:21:21 -0500

Seen: 66 times

Last updated: Apr 29 '22