if the plugin in the file is not of the right type, it needs to be a GUIPlugin. Also returns false if the plugin couldn't be created from this file.

Parameters

[in]

_filename

Filename to load the plugin from

[in]

_elem

Plugin sdf parameters.

void AddPlugins

(

const std::vector< std::string > &

_pluginFilenames

)

Add a list of plugins to be loaded from files.

This will create a plugin from each file in the list and call AddPlugin(std::string, sdf::ElementPtr with an empty sdf::Element for each. Use AddPlugin(std::string&, sdf::ElementPtr) to load a GUI plugin with an initialized sdf element instead.