-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Publish static transforms when intra porocess communication is enabled #2381
Publish static transforms when intra porocess communication is enabled #2381
Conversation
Thanks so much @Yadunund for your contribution to the ROS2 wrapper! :) |
@MartyG-RealSense I'm unfamiliar with the review process for this repo. Do I need to assign a reviewer? |
Hi @Yadunund No, you don't need to assign a reviewer as the RealSense development team does that. Thanks very much for your patience! |
Gotcha, thank for the heads up 😄 |
Could you split the functional and the white space changes? This would make it easier to backport/cherry-pick the actual fix into other branches. |
Thats a great solution! |
Sure! Will get to doing so in a bit. |
b81ce1a
to
6fd6b5f
Compare
@christian-rauch @Nir-Az hope the diff is suitable now! |
Sorry for an extra commit after CI started. I tried to save one extra copy from happening 😅 |
NP, did you manage to verify that the intra process functionality still works for images using our latency tool? |
I think "Rebase" is not a good commit message. Can you restore the original message or write a new one that reflects the actual change, e.g. "publish static transformations for intra-process communication" or something along that line? |
I would also suggest squashing those two commits together as they are changing the same line twice. |
According to the CI results The API was changed since |
Apart from If so I think I can get
|
Thanks,
|
Since librealsense SDK supports Ubuntu 18, we will to allow Appreciate it. |
4d3236b
to
22c91d5
Compare
Signed-off-by: Yadunund <[email protected]>
22c91d5
to
e1a65bb
Compare
I've updated the PR to try to accommodate dashing too. I don't have access to an 18.04 + dashing setup so I have not tried it out. I tried to match the default arg for QoS as seen in the dashing API I've also squashed the commits to just one as requested. Lastly verified intra-process by running the latency tool
|
Great! thanks a lot! |
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.
Approved, very appreciated
Thanks for the review! |
Hi @MartyG-RealSense ,
In the existing implementation of the ROS 2 driver, if users enable
intra_process_communication
, the driver will not publish static tf transforms due to this conditionHowever there is really no need to sacrifice static tf publishing at the expense on enabling
intra_process_communication
asrclcpp
is smart enough to selectively disable the intra process publishing mechanism for publishers (or subscribers) by suitably overwriting thePublisherOptions
for a given publisher.This PR enables users to benefit from both
intra_process_comminication
as well as static tf transforms published by this driver. It short, it overcomes thestatic_tf
limitation described in the README here 😄It has been tested on
foxy
andgalactic
onUbuntu 20.04
with aD455
camera.Once you rebuild the package, and load the driver component into a component container with
use_intra_process_comms:=True
, you should still be able toros2 topic echo /tf_static --qos-reliability reliable --qos-durability transient_local
to see the static transforms.Signed-off-by: Yadunund [email protected]