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

build: Add inner function to extract struct from messages #25

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

patrickelectric
Copy link
Member

@patrickelectric patrickelectric commented Apr 20, 2024

The idea is to create a inner function for the parser/builder that uses the typesystem of structures to define a general request wait_for_message function.
With this, we don't need to create function for every single message, but using the typesystem to define all messages for us for free, based on the return type.

As pointed here: #24 (comment)
This empowers: e19a7a9

> The idea is to create a inner function for the parser/builder that uses the typesystem of structures to define a general request wait_for_message function.
With this, we don't need to create function for every single message, but using the typesystem to define all messages for us for free, based on the return type.

Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
@patrickelectric patrickelectric merged commit 6628872 into bluerobotics:master Apr 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants