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

Add support for loading vector from configuration files with parenthesis #677

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

traversaro
Copy link
Member

As discussed in robotology/yarp#3092, it is recommended for future software that uses YARP to use vectors in configuration file by indicating them with parenthesis, i.e. to refer to them with:

nameOfList (elem1 elem2 elem3)

instead of:

nameOfList elem1 elem2 elem3

gazebo-yarp-plugins used to load the vectors from configuration files expecting no parenthesis. After this PR, now plugins support both the with parentheis and without parenthesis style, printing a warning if the without parenthesis style is used. If you can require gazebo-yarp-plugins 4.11.0, consider switching your configuration files to the vector with parenthesis style.

As discussed in robotology/yarp#3092,
it is recomendded for future software that uses YARP to use vectors
in configuration file by indicating them with parenthesis.

gazebo-yarp-plugins used to load the vectors from configuration files
expecting no parenthesis. After this commit, now plugins support
both the with parentheis and without parenthesis style, printing
a warning if the without parenthesis style is used. If you can
require gazebo-yarp-plugins 4.11.0, consider switching your configuration
files to the vector with parenthesis style.
Copy link
Member

@Nicogene Nicogene left a comment

Choose a reason for hiding this comment

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

🚀

@traversaro traversaro merged commit 3d59783 into master Apr 4, 2024
8 of 10 checks passed
@traversaro traversaro deleted the fixvecparenthesis branch April 4, 2024 14:33
Nicogene added a commit that referenced this pull request Apr 8, 2024
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.

3 participants