-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update configuration parsing logic #116
Conversation
- Update Imu file names to adhere to class naming convention
Add this check to unit tests
@traversaro any idea on why the unit test with the CI fails in loading the plugins? I don't know how to debug this, since on my machine it works. Maybe on my machine gazebo finds the plugin libraries in the install directory? |
Remove unnecessary dependencies and add GZ_SIM_SYSTEM_PLUGIN_PATH env variable
434491f
to
c863734
Compare
Ok found! This test was missing his |
… class to avoid duplicating code - Manage also relative paths for configuration files
Now there is the Windows conda CI failing with:
|
Relative path w.r.t. to what? By the way, do you think we could document the semantics of |
Sorry for the ambiguity, the path is relative to the current working directory. For example, looking at the ForceTorqueTest, the robotinterface path is specified as:
and it is actually resolved to the absolute path I'm thinking to update the handling of the relative path by using Yep I will also add a section in the README specifying the alternatives to specify paths. |
I am not sure it is is a great feature, basically it (silently, not in a really clear way) constraints the sdf to be opened only if the simulator or the executable using the gz-sim as a library is launched in the directory it is intended to be launched. I guess we need it know for the tests, but probably we can avoid to advertise it/discourage to use it in actual models (a bit like absolute paths). |
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.
See comments.
After more carefully thinking about it, I agree with you. I mainly added the relative path feature in order to be compatible with the models already present in tests and tutorials that were using relative paths, but this could become tricky and cumbersome to debug for users. Do you think it's better to remove this feature for now and refactor the paths in test and tutorials to use the URI? Or we should treat relative paths like absolute ones, by logging a warning for a potentially unreliable path while allowing it? |
I would go for the fast option, that I guess it is the second. |
macOS test disabled related issue: #90 |
Updated README |
1f74fca
to
e9019eb
Compare
Merging! 🚀 |
Note
This PR affects all plugins
With this PR every plugin can specify its yarp configuration both with
<yarpConfigurationString>
and<yarpConfigurationFile>
.When using
<yarpConfigurationFile>
the path to the file can be specified in the following ways:scheme[//authority]path[?query][#fragment]
(see https://gazebosim.org/api/common/5/classgz_1_1common_1_1URI.html for more info);Closes #68
Closes #80