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.
---
[Visit Topic](
https://discourse.ros.org/t/using-classloader-with-nodes-and-non-default-constructors/2018/3) or reply to this email to respond.
If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
ros-users@lists.ros.org
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <
http://lists.ros.org/mailman//options/ros-users>