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

How to inherit gazebo_ros2_control::GazeboSystem(gazebo_hardware_plugins) elegantly? #123

Open
CaptainKAZ opened this issue Apr 7, 2022 · 2 comments

Comments

@CaptainKAZ
Copy link

CaptainKAZ commented Apr 7, 2022

Hi I want to write a plugin to expand default hardware plugin (gazebo_ros2_control::GazeboSystem)
So I #include <gazebo_ros2_control/gazebo_system.hpp> and inherit the origin class like this class GazeboXXXExpandedSystem : public gazebo_ros2_control::GazeboSystem and then override read and write function to make my own behaiver
Question is, when I compile my plugin, the compiler throws error that classgazebo_ros2_control::GazeboSystemPrivate declared in gazebo_system.hpp is undefined.
At last I have to copy the whole definition of gazebo_ros2_control::GazeboSystemPrivate into my src make the compiler happy.
Is there any way I can do this more elegantly?

@eslamsalahelsheikh
Copy link
Contributor

Hi, I've the same problem. did you find a solution yet?

@Blebot0
Copy link

Blebot0 commented Jun 5, 2023

Any updates on this? Did you find a solution?

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

3 participants