-
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
Add helper functions to locate yarp configuration files #80
Comments
Gazebo gazebo-yarp-plugins helper class to deal with configurations: https://github.com/robotology/gazebo-yarp-plugins/blob/master/libraries/singleton/src/ConfHelpers.cc |
By using the
and then it correctly defaults to searching the file. @traversaro should I match the string against a regex to determine what function to call ( |
Note for future users (and myself): while writing the unit test to check the loading of the configuration of gz-sim-yarp-plugins, I noted that the I found on http://robotology.github.io/gazebo-yarp-plugins/master/embed_plugins.html documentation that:
but it does not says anything about sensor plugins. @traversaro does this align with your knowledge? |
Good point. I guess that was the behaviour also in the old Gazebo. Passing the absolute path in general is undesirable, as it creates non-portable models. However, if something is supported, it should not print an error. I guess we can either discriminate absolute files by check if they are absolute path with |
Yes, that was indeed a limitation we realized while first working on the plugins in this repo, and we decided to proceed like that as we were not be able to get it to work by putting the plugins as children of the |
I think I can discriminate the paths using the |
Ok with db30ff2 we can manage three ways to specify configuration files:
|
The
yarpConfigurationFile
way to specify a configuration file for yarp plugins must support the specification of paths using themodel://
syntax.#77 (comment)
How gazebo vs. gazebo classic search for models and other sdf elements: https://gazebosim.org/api/sim/8/migrationsdf.html
The text was updated successfully, but these errors were encountered: