Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating plugin base in same package #255

Open
mrawding opened this issue Apr 10, 2024 · 1 comment
Open

Creating plugin base in same package #255

mrawding opened this issue Apr 10, 2024 · 1 comment

Comments

@mrawding
Copy link

Hello,

I'm trying to create a plugin package. I want the base class to be in the same package as the other plugins. Is this a limitation of pluginlib? It's having trouble finding the class.

I have following structure.

package

  • include/package/base.hpp
  • incluce/package/plugin.hpp
    src/plugin.cpp (with export)

Class structure is base_namespace::class A

plugin_namespace::Class B : public A

I try to load B with base class A and I get the error

According to the loaded plugin descriptions the class plugin_namespace::B with base class type base_namspace::A does not exist. Declared types are plugin_namespace::B

Any thoughts on how I can keep it in the same package or examples to provide? Thanks!

@DLu
Copy link

DLu commented Oct 22, 2024

I have been in a similar situation before.. You cannot dynamically load the library you are currently in. What does your CMake look like w.r.t. the above source files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants