Using ClassLoader with nodes and non-default constructors

I think the typical pattern is to create a default constructor for your plugin, but use a separate initialize(…) method to feed arguments.

See plugin definition packages such as nav_core in the navigation stack, and controller_interface in ros_control.

1 Like