-
Notifications
You must be signed in to change notification settings - Fork 48
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 option for simple configuration for the plugins #142
Comments
Just realized how we can solve this issue in two lines of code. We normally load yarp-specific configuration files using the following syntax:
where the content of the tag is the path that is passed to the We can add as an alternative option this tag:
that passes its content directly to yarp::os::Property::fromString`. |
@traversaro
(Probably this should be decided having in view the possibility of overriding a property as in #392) |
For a single plugin, I would say that the best option is that the two properties cannot coexist, i.e. an error is printed and the plugins does not start. When overriding, by idea was something like: Only I do not how much this is compatible with the This is related also to #392 : we should make sure that all the plugins use this helper functions to load their conf files :
|
The reason why I was thinking at coexisting option is that for example we may need to just modify the (Anyway probably a further discussion may be needed on how the
Is this sintax able to cope with groups (nested properties)? (And in case NOT, do we need it?) |
Good point, I think the best option is that you look into it and come up with proposal from the insight you got.
I am afraid it is not documented, but yes, in this way: |
From my point of view the coexistence should be allowed so that:
|
To explain better this point, how it currently works with a plugin is that with the following
The first |
I like solution ii. |
Me too I prefer this solution. I will try to implement it and test it in order to have a better understanding of possible issues. I have also noticed that |
I do not think there is any specific reason not to use it, I think it is just something that we never cleaned up. |
PR at #394, further discussion on the use of |
PR for introducing |
Merged, @traversaro I think we can close this issue |
Yes! |
For sufficiently simple use the plugin should be configurable just from the sdf, without the need of a
.ini
file.The text was updated successfully, but these errors were encountered: