Fix SimpleSubscriberPlugin#195
Conversation
…aking a rclcpp::SubscriptionOptions object. Plugins that were not overriding it before won't notice that they have to be update. * Allocate a SimpleSubscriberPlugin::Impl on construction. Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
|
@jacobperron @audrow could you review? |
Now that I see the diff, I deleted a line without realizing and then added it back 😂. |
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Reverted the accidental changes in a3d3d31. |
…gin. * Override subscribeImpl() method taking a rclcpp::SubscriptionOptions in all classes inheriting from SimpleSubscriberPlugin. Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
|
I realized this is neither ideal unfortunately, see 8e4fc83. We should either do this, or delete the |
|
ugh, yeah this use of inheritance is not very maintainable. Maybe we go forward with this workaround for Galactic and then break the API for Rolling by removing the |
|
@mjcarroll could you review? |
|
This introduced a clang warning, fix in #196. |
Plugins that were not overriding it before won't notice that they have to be update.
That was done in #186.
To be more clear, the issue is that external plugins are usually inheriting from
SimpleSubscriberPluginand not fromSubscriberPlugin.e.g. this method was not called anymore after that patch, resulting in the compressed image transport subscriber plugin not being correctly initialized.