Fix DDS service call interop with CycloneDDS and FastDDS#400
Open
alvgaona wants to merge 2 commits intoAtostek:masterfrom
Open
Fix DDS service call interop with CycloneDDS and FastDDS#400alvgaona wants to merge 2 commits intoAtostek:masterfrom
alvgaona wants to merge 2 commits intoAtostek:masterfrom
Conversation
…n discovery_db When a remote DDS implementation (e.g. CycloneDDS) omits per-endpoint locators in SEDP announcements and relies on the participant's default locators from SPDP, update_subscription() and update_publication() would store the raw data with empty locator lists. The enriched copy (with default locators filled in) was only returned for the immediate notification but never stored back. This caused endpoints created after initial SEDP discovery to get reader/writer proxies with empty locator lists, silently dropping all data. Service calls (single request/reply) failed 100% of the time. The fix builds the enriched data first, then stores the enriched version in external_topic_readers/external_topic_writers so that later lookups via readers_on_topic()/writers_on_topic() return usable locator information.
SampleIdentity is required to call WriteOptionsBuilder::related_sample_identity() but was not publicly accessible. It lived in structure::rpc which is pub(crate), making the public API method impossible to call from downstream crates. This is needed for ROS 2 service interop with FastDDS, which uses RTPS Inline QoS PID_RELATED_SAMPLE_IDENTITY for service request/reply correlation.
ac29eef to
6c495ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes for ROS 2 DDS service call interop, each targeting a different DDS vendor: