-
Notifications
You must be signed in to change notification settings - Fork 21
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
A more minimal Ignition to Gazebo server rename effort #263
Conversation
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## ign-fuel-tools4 #263 +/- ##
===================================================
+ Coverage 76.15% 76.21% +0.05%
===================================================
Files 19 19
Lines 2718 2724 +6
===================================================
+ Hits 2070 2076 +6
Misses 648 648
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Works as advertised
$ tree ~/.ignition/fuel/ -L 4
/home/chapulina/.ignition/fuel/
├── fuel.gazebosim.org
│ └── openrobotics
│ └── models
│ └── tunnel tile 4
└── fuel.ignitionrobotics.org
└── openrobotics
└── models
└── tunnel tile 1
I just have some minor comments below, but nothing blocking.
@@ -538,12 +538,14 @@ TEST_F(FuelClientTest, DownloadModel) | |||
EXPECT_EQ(ResultType::FETCH_ALREADY_EXISTS, res5.Type()); | |||
} | |||
|
|||
// Download model with a dependency specified within its `model.config` | |||
// Download model with a dependency specified within its `model.config`. | |||
// The dependency points to fuel.gazebosim.org. |
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.
Is it valuable to also test the other way around, i.e. a ignitionrobotics
URL that depends on a gazebosim
URL?
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.
The reverse also works. I've just added the ability to use both fuel.ignitionrobotics.org
and 'fuel.gazebosim.org' at the same time. As long as both server configurations are present, then it'll work.
ServerConfig gzServerConfig; | ||
gzServerConfig.SetUrl(common::URI("https://fuel.gazebosim.org")); | ||
gzServerConfig.SetVersion("1.0"); | ||
this->servers.push_back(gzServerConfig); |
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.
Just for completeness, is there an advantage to hardcoding it here as opposed to there
gz-fuel-tools/conf/config.yaml
Lines 3 to 6 in b3c253c
servers: | |
- | |
name: osrf | |
url: https://fuel.ignitionrobotics.org |
In theory, I think that hardcoding it here makes it difficult, if not impossible for users of other servers to disable gazebosim.org
. Not sure if any users at all care about that, but it's a use case supported to an extent.
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.
There are a couple problems associated with the yaml config file.
- I don't think it's possible to use the yaml config file when running
ign gazebo
. - I believe the config file is only used with
ign fuel
if the--config
option is specified. - If either
fuel.ignitionrobotics.org
orfuel.gazebosim.org
are missing in the ClientConfig, then worlds/models that use both URIs will not load.
I don't see an easy way around this.
Signed-off-by: Nate Koenig nate@openrobotics.org
🎉 New feature
Summary
For Citadel and Fortress users I'd like to achieve the following goals:
Test it
~/.ignition/fuel
directory.fuel.gazebosim.org
URI. The included model depends on another model whose URI usesfuel.ignitionrobotics.org
.Tunnel Tile 4
in~/.ignition/fuel/fuel.gazebosim.org/openrobotics
, andtunnel tile 1
in~/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics
.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.