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

Route for Service Client: use the new Zenoh Querier and its matching_listener #356

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

JEnoch
Copy link
Member

@JEnoch JEnoch commented Dec 10, 2024

The route for a ROS Service Client (i.e. routing DDS requests to Zenoh query and the Zenoh replies back to DDS) was activated (i.e. creating DDS readers/writer reflecting a remote Service Server) only when a Liveliness Token announcing a remote Service Server is received.
This complicates the implementation of a pure Zenoh Service Server replying to a ROS Service Client, since it also has to declare an appropriate Liveliness Token (in the same way than the bridge done.

Fortunately, Zenoh 1.0.4 introduces a Querier that can be associated to a MatchingListener which is triggered when at least 1 matching Queryable is discovered or when all matching Queryable are gone.
This PR makes use of this to activate the Service Client route when a matching Zenoh Queryable is detected, and deactivated when all matching Queryables are gone.

@JEnoch JEnoch added the enhancement New feature or request label Dec 10, 2024
@JEnoch JEnoch requested a review from evshary December 10, 2024 11:47
@JEnoch JEnoch self-assigned this Dec 10, 2024
Copy link
Contributor

@evshary evshary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
However, there is an error log while testing the communication between Zenoh and ROS

Unable to push non droppable network message to 53c91389c0acbb623c487c7ee51ef29e. Closing transport!
INTERNAL ERROR sending DDSDiscoveryEvent to internal channel: "Disconnected(..)"

I'm not sure if this is expected.

@evshary
Copy link
Contributor

evshary commented Dec 11, 2024

Link the CI PR necessary for this one
#357

@JEnoch
Copy link
Member Author

JEnoch commented Dec 11, 2024

However, there is an error log while testing the communication between Zenoh and ROS

Unable to push non droppable network message to 53c91389c0acbb623c487c7ee51ef29e. Closing transport!
INTERNAL ERROR sending DDSDiscoveryEvent to internal channel: "Disconnected(..)"

I'm not sure if this is expected.

This message may happens when the Zenoh connection is closed, but there are still attempts to send messages.
This is not related to this PR. Investigations are currently underway in Zenoh itself.

@JEnoch JEnoch merged commit a15bd57 into main Dec 11, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants