-
Notifications
You must be signed in to change notification settings - Fork 36
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
Provide support for services #80
Comments
Some wip at rolling...francocipollone/service_support_via_queryable via using zenoh queryable. It might change to use topics as the DDS-based implementations due to rmw api current behavior. Being discussed. |
Some comment related to zenoh queryables and ownerships: ContextFollowing RMW implementation if using queryable:
IssueIn this example: https://github.com/eclipse-zenoh/zenoh-c/blob/master/examples/z_queryable.c#L28-L42 The callback for the queryable receives a z_query_t pointer. After double checking with Zettascale folks: using the z_query_t outside of its callback is UB, as said query is destroyed. It is in the roadmap to support this API. AlternativeWe could move forward using publishers and subscriptions for service support, typically how it is done for the dds-based implementations, and upgrade to use Queryables later on when supported. |
I don't love the 2 topic solution (it leads to races), but this is an OK workaround for now. Once we get the queryable-handle support later, we can switch to it. The only thing I'll suggest is that we design the API so that we can easily switch to the queryable-based solution in the future. |
Actually owned queries are coming very soon in zenoh-c: eclipse-zenoh/zenoh-c#213 |
Awesome, thanks for tackling this quickly |
@Yadunund and @francocipollone , checking to see if services are now supported? I see #86 and #88, both of which seem promising. |
Sort of. They work in their most basic form, but they are pretty buggy right now. #90 adds in graph introspection for services. I'm working on some additional fixes on top of #90 which improves the reliability of them. Hopefully after that they will be closer to "done". |
We've fixed all of the known issues with services right now, so closing this. Any other problems we can ticket separately. |
Tasks
The text was updated successfully, but these errors were encountered: