You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -304,7 +305,7 @@ The ``ClassLoader`` is the key class to understand, defined in the ``class_loade
304
305
305
306
There are a number of ways to instantiate an instance of the class.
306
307
In this example, we're using shared pointers.
307
-
We just need to call ``createSharedInstance`` with the fully-qualified type of the plugin class, in this case, ``polygon_plugins::Square``.
308
+
We just need to call ``createSharedInstance`` with a reference to the plugin: This can be either the fully-qualified type of the plugin class (the ``type`` attribute of the declaration XML file, e.g. ``polygon_plugins::Square``), or the optional magic name (the ``name`` attribute of the declaration XML file, e.g., ``awesome_triangle``).
308
309
309
310
Important note: the ``polygon_base`` package in which this node is defined does NOT depend on the ``polygon_plugins`` class.
310
311
The plugins will be loaded dynamically without any dependency needing to be declared.
0 commit comments