-
Notifications
You must be signed in to change notification settings - Fork 42
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
Querying subs to query newly discovered publishers with publication caches #269
Conversation
d0f7f43
to
2313943
Compare
This PR will likely remain in draft until we migrate to Zenoh 1.0.0. f4dc8ea set |
I've temporarily merged changes from eclipse-zenoh/zenoh-c#620 and I can confirm this PR now fixes the original issue. Once upstream |
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Yadunund <[email protected]>
6ee5f03
to
91df705
Compare
The API in zenoh-c has been fixed and i've updated the commit hash accordingly. This PR is ready for review. |
Signed-off-by: Yadunund <[email protected]>
91df705
to
4188ea1
Compare
Hmm i've been unable to successfully run the nav2 demo with this PR. More specifically, the costmap does not show up in RViz and i'm unable to localize the robot. Digging into whether the problem is caused by the changes in the code here or perhaps a regression somewhere in zenoh-c between the old commit and the new one. |
I've narrowed the problem to this line that this PR added rmw_zenoh/rmw_zenoh_cpp/src/rmw_zenoh.cpp Line 623 in 4188ea1
If I comment out the line, running Else I'm seeing But the whole point of the bug fix is to include the |
…fix (#274) * Adapt the QueryingSubscriber's initial query to the new queryable_prefix * fix uncrustify issue * Make choice of query_target explicit Signed-off-by: Yadunund <[email protected]> --------- Signed-off-by: Yadunund <[email protected]> Co-authored-by: Yadunund <[email protected]>
Thanks for the fix! I've merged it into this PR. This is now ready for another round of review. |
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.
I've left one minor thing to improve. Once that is done, and @ahcorde 's comments are addressed, I think this will be good to go.
Co-authored-by: Chris Lalancette <[email protected]> Signed-off-by: Yadu <[email protected]>
Signed-off-by: Yadunund <[email protected]>
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.
Thanks for all of the changes here! Looks good to me.
Fix #263
This PR:
Entity::keyexpr()
toEntity::liveliness_keyexpr()
to disambiguate between keyexpressions used for liveliness tokens and keyexpressions used for topic/service names.topic_keyexpr
string toTopicInfo
stored withinEntity
. This way, entities constructed withinGraphCache
are aware of they topic keyexpressions.rmw_create_subscription
to register a callback as described above that will callze_querying_subscriber_get
over the keyexpression. This requires the zenoh session ID as the "selector" to uniquely identify which PublicationCache to query.