-
Notifications
You must be signed in to change notification settings - Fork 268
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 parameters system #1280
Closed
Closed
Add parameters system #1280
Conversation
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
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…stry with mutex Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
ivanpauno
force-pushed
the
ivanpauno/parameters-impl-draft
branch
from
January 11, 2022 22:22
dc742f3
to
1ca4743
Compare
Hints of how to review this:
|
chapulina
added
the
needs upstream release
Blocked by a release of an upstream library
label
Jan 11, 2022
8 tasks
@ivanpauno , Edifice will EOL next week, so this PR can't target |
It's fine to close it, should the new PRs target |
10 tasks
This was referenced Apr 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🏢 edifice
Ignition Edifice
enhancement
New feature or request
needs upstream release
Blocked by a release of an upstream library
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.
🎉 New feature
Connected to gazebosim/gz-msgs#211.
Hints of how to review the PR: #1280 (comment).
Summary
This PR adds:
ignition::gazebo::DeclareParameter()
helper function.Parameters
system:/world/<world_name>/list_parameters
service: List available parameters names and types./world/<world_name>/get_parameter
service: Get the type and value of a parameter./world/<world_name>/set_parameter
service: Set a parameter: parameter name, value and type need to be provided.The component data type must be a protobuf message to be declared as a parameter.
ign param
command line tool. A simple cli tool to interact with parameters.Though interacting with parameters using
ign service
is possible, it's not as easy as parameter values are serialized.Summary of what's needed to declare and use a parameter can be seen in the wheel slip demo branch: diff.
Test it
I haven't written automated tests yet, but there's a demo using parameters in the wheel slip plugin:
Steps to run the demo:
edifice
checking out the two branches specified above (I can provide PRs for another version if needed).List available parameters:
Expected output
Get the
systems.wheel_slip.trisphere_cycle1.wheel_front
parameter:Expected output
Set the
systems.wheel_slip.trisphere_cycle1.wheel_front
parameter to a different value:Expected output
Get the
systems.wheel_slip.trisphere_cycle1.wheel_front
parameter again, its value should have changed:Expected output
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.