-
Notifications
You must be signed in to change notification settings - Fork 290
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
Fix ResourceSpawner #2490
Fix ResourceSpawner #2490
Conversation
Signed-off-by: Michael Carroll <[email protected]>
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.
Thanks for the fix. Just one issue
@@ -739,7 +739,7 @@ void ResourceSpawner::RunFetchResourceListThread(const std::string &_owner) | |||
resource.isFuel = true; | |||
resource.isDownloaded = false; | |||
resource.owner = id.Owner(); | |||
resource.sdfPath = id.UniqueName(); | |||
resource.sdfPath = "https://" + id.UniqueName(); |
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.
Can we avoid hard coding https://
? Maybe get it from server
somehow?
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.
Actually looking at this again, the UniqueName
won't work on Windows (though gui plugins currently don't have any test coverage). Let me re-work it.
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.
Okay, I ended up adding a Url
method to the Identifier objects in fuel_tools. This now depends on gazebosim/gz-fuel-tools#429
Signed-off-by: Michael Carroll <[email protected]>
Disclaimer - outsider needing this bug to be fixed. There is Url property in ServerConfig object. Change the line, where build fails: Into Regards |
That URL only stores the base server URL. In this case, we need the full URL to the asset in question. |
@mjcarroll looks like this needs a gz-fuel-tool9 release. |
[ruby $(which gz) sim-2] Error [SDF.cc:165] Tried to use callback in sdf::findFile(), but the callback is empty. Did you call sdf::setFindCallback()? how to handle this problem |
🦟 Bug fix
Fixes #2486
Summary
id.UniqueName()
now returns withouthttps://
prefixed, but we want to keep track of the URIs that the resources are downloaded from. These changes were added in gazebosim/gz-fuel-tools#376 and should have been accommodated here.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