-
Notifications
You must be signed in to change notification settings - Fork 199
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
Enable TransformListener node-based constructor in Intra-process enabled components #572
Conversation
I'm running into a similar issue like #571, but with a StaticTransformBroadcaster. Maybe this PR can be extended for the StaticTransformBroadcaster and TransformBroadcaster? |
@FranzAlbers so you compose a StaticTransformBroadcaster and it doesn't work when intra_process_Comms are enabled via component param? EDIT: since I will probably try to compose some StaticTransformBroadcaster in my launchers, additional feedback from you could help me fix the problem you are mentioning. |
@roncapat I want to compose a node with my camera driver, This works fine for my camera driver and the However, I quickly tried this myself by setting |
Ok, I will check also that. Seems a simple job, like what already included in this PR. |
After cleaning and rebuilding the I think editing |
@clalancette is there anything I should do to improve the PR? |
Can you please add in a test to show that this fixes the problem? |
Of course, I'll try (and write back if not able to figure out how to do it properly). |
cc081d5
to
e3d3981
Compare
@clalancette I force-pushed a commit with a new test triggering the issue with intraprocess enabled. So that:
Hope this covers your request :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please retarget this to the rolling
branch? Once we have it in there, we can consider backporting to humble
. Thanks.
@clalancette yes (did a mess now with github portal trying to switch base branch...). During weekend I'll do the proper moves/rebase sorry :) |
What's the difference between Hpr and Rpr build? Anyway, I rebased on rolling :) |
Yes, exactly. There is some bug here where if you change branches, it still tries to build on the old branch. So that's why the Hpr job is failing, but we can ignore that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more small thing to fix, then I think this is ready for CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(trailing whitespace makes uncrustify unhappy)
We are getting closer.
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(it's probably best if you run colcon test --packages-select tf2_ros
before submitting again)
Checked offline, this should be the last lint fix! |
Fixes #571
With this patch, TransformListener can be constructed using existing node references, when those nodes are in fact Intra-Process Enabled C++ ROS2 Components.
Intra-process communication is disabled per-subscription.