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
I have a use case where I want to create several instances of the same type of plugin but initialize them with different parameters. However, when I load these multiple instances, they all point to the same underlying object in memory. This test case shows the failure.
Per the documentation it seems like boost is designed to load a shared library and have multiple references to it, but I haven't been able to find any documentation or issues with this specific problem
The text was updated successfully, but these errors were encountered:
I think the factories that exist in tesseract suffer from the same problem because they still only hold onto a single PluginLoader object and can theoretically call createInstance multiple times for the same plugin type. We probably haven't run into this issue yet because you usually don't need to create more than one instance of any plugin. You could imagine potentially making multiple instances of the same type of IK solver or collision checking plugin with different parameters though
It does this now but because the plugin is not the IK solver or Collision checker but a object which produces theses it is not an issue if you get the same factory every time and it would produce a unique IK Solver or Collision checker. Now if tesseract was changed such that the plugin was the IK solver or collision checker the issue you found would be an issue.
I have a use case where I want to create several instances of the same type of plugin but initialize them with different parameters. However, when I load these multiple instances, they all point to the same underlying object in memory. This test case shows the failure.
Per the documentation it seems like
boost
is designed to load a shared library and have multiple references to it, but I haven't been able to find any documentation or issues with this specific problemThe text was updated successfully, but these errors were encountered: