-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add parameter services #342
Merged
jhdcs
merged 30 commits into
ros2-rust:main
from
luca-della-vedova:luca/parameter_service
May 14, 2024
+1,406
−238
Merged
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c1662fd
WIP Adding describe paramater service
luca-della-vedova 2ff7638
Implement parameter setting services
luca-della-vedova 3b6e6e3
Restructure and cleanup
luca-della-vedova 322f760
Merge remote-tracking branch 'origin/main' into luca/parameter_service
luca-della-vedova c14417b
Implement list_parameters with prefixes
luca-della-vedova f9bc86d
Minor cleanups
luca-della-vedova 0605261
Fix tests, cleanups
luca-della-vedova 6f8a6ef
Fix order of drop calls
luca-della-vedova 45ccda9
Add first bunch of unit tests for list and get / set parameters
luca-della-vedova 315e088
Clear warnings in rclrs
luca-della-vedova 8d53f2a
Fix clippy, add set atomically tests
luca-della-vedova 095a00f
Add describe parameter and get parameter types tests
luca-della-vedova e34a4b9
Merge branch 'main' into luca/parameter_service
luca-della-vedova d3585ca
Minor cleanups, remove several unwraps
luca-della-vedova 74f384d
Remove commented code
luca-della-vedova 68ccd97
Address first round of feedback
luca-della-vedova 1360479
Allow undeclared parameters in parameter getting services
luca-della-vedova eb354a6
Clippy
luca-della-vedova 06ca77e
Merging with main
mxgrey fbfdf2e
Run rustfmt
mxgrey cdf3854
Update rclrs/src/parameter/service.rs
luca-della-vedova fc7598d
Merge branch 'main' into luca/parameter_service
luca-della-vedova 3274f42
Change behavior to return NOT_SET for non existing parameters
luca-della-vedova 00c7951
Make use_sim_time parameter read only
luca-della-vedova e4dd176
Format
luca-della-vedova 5da50a2
Add a comment to denote why unwrap is safe
luca-della-vedova 9b2577c
Merge branch 'main' into luca/parameter_service
luca-della-vedova d73d07c
Use main fmt
luca-della-vedova f2cc667
Add a builder parameter to start parameter services
luca-della-vedova 4b68266
Merge branch 'main' into luca/parameter_service
luca-della-vedova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are we all ok with adding a test dependency? Personally, I feel it's all right, just want to make sure the other maintainers are cool with it.
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 personally don't see any other way to do it, if we want to test clients and services we need some sort of async runtime. I am personally not very familiar with
tokio
so it wouldn't have been my first choice but I saw that it was the framework of choice for the services example so I stuck to it for consistency.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 don't see any reason to be shy about test dependencies if they're able to add any amount of value to our ability to have worthwhile tests. Especially a dependency as well vetted as tokio.
I could understand hesitation if it were a dependency on the actual package because that could limit what platforms are able to use rclrs, but test dependencies don't have any negative downstream impacts.