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

Implement Subscription loosely following the ROS2 API. #186

Merged
merged 14 commits into from
Jan 3, 2023
Merged

Conversation

aentinger
Copy link
Member

Note: Since the service server/client API has not been cleanly separated in the past with the API for message subscription this is leading to a couple of CI build errors now. Regardless fixing request/response API is out-of-scope for this PR and will be fixed in a sub-sequent one.

@aentinger aentinger added topic: firmware Code that runs on an embedded system. type: enhancement PR to improve the project. labels Dec 28, 2022
@aentinger aentinger self-assigned this Dec 28, 2022
src/Node.cpp Outdated Show resolved Hide resolved
src/Node.hpp Outdated Show resolved Hide resolved
src/Node.hpp Outdated Show resolved Hide resolved
src/Node.ipp Outdated Show resolved Hide resolved
src/Subscription.hpp Outdated Show resolved Hide resolved
src/Subscription.hpp Show resolved Hide resolved
src/Subscription.hpp Outdated Show resolved Hide resolved
src/Node.ipp Outdated Show resolved Hide resolved
src/Subscription.ipp Show resolved Hide resolved
src/Subscription.hpp Outdated Show resolved Hide resolved
…ference to a Node object and do the cleanup directly.
…ed as that it would pay off to declare it yourself fully, auto works just the same.
Copy link
Member

@pavel-kirienko pavel-kirienko left a comment

Choose a reason for hiding this comment

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

Nice. I have other points that are probably out of the scope of this PR:

  • It would be very useful (and occasionally critical) to be able to override the transfer-ID timeout value when creating a new subscription. I think this feature should be very easy to add here.
  • Is there any reason you are using native types for time instead of the rich types from std::chrono?

@aentinger
Copy link
Member Author

Thank you for your review @pavel-kirienko ☕ 👋

I'll keep your inputs in mind to tackle when in the polish-phase of this redesign.

@aentinger aentinger merged commit 3edd9a9 into fix-174 Jan 3, 2023
@aentinger aentinger deleted the subscriber branch January 3, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: firmware Code that runs on an embedded system. type: enhancement PR to improve the project.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants