-
Notifications
You must be signed in to change notification settings - Fork 494
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
[Gazebo 11] Allow gazebo to download models from Fuel in the sdf files #2822
Conversation
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: ahcorde <ahcorde@gmail.com>
That should have been fixed in gazebosim/gz-fuel-tools#85. We just need an
After the discussion on gazebosim/gz-fuel-tools#77 (comment), the recommended pattern is using full URLs. And |
I compiled from sources
|
Signed-off-by: ahcorde <ahcorde@gmail.com>
With the last commit we can load worlds from URL using the command line:
are worlds fully compatible between Gazebo and Ignition ? I don't know if there any plan to move worlds to fuel too |
We're working on it. The main pending item now is that Ignition requires a few world plugins to be defined for simulation to work, while classic doesn't need that. This is being addressed by gazebosim/gz-sim#281. After that, the only difference will be some SDF tags here and there, but the worlds should be largely compatible. |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
…hcorde/fuel/world
friendly ping @chapulina |
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.
Great work, all the use cases are working for me! Do you think you could add a few tests to make sure we don't break the functionality?
I create this world to test these features:
Mind committing that world to this repo? I could be called fuel.world
.
I think that with this PR, we can remove the need for the USE_IGNITION_FUEL
environment variable:
Signed-off-by: ahcorde <ahcorde@gmail.com>
Added two tests
|
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: ahcorde <ahcorde@gmail.com>
…nto ahcorde/fuel/world
@osrf-jenkins run tests again |
{ | ||
gzerr << "Unable to download model[" << _uri << "]" << std::endl; | ||
return std::string(); | ||
if (path.empty()) { |
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.
if (path.empty()) { | |
if (path.empty()) | |
{ |
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
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.
@osrf-jenkins run tests please?
This looks good to me, now we just need to check CI.
@osrf-jenkins run tests maybe? |
@osrf-jenkins run tests please |
It looks like this breaks the Windows build:
|
@osrf-jenkins run tests please |
Signed-off-by: ahcorde <ahcorde@gmail.com>
@osrf-jenkins run tests please |
Signed-off-by: ahcorde <ahcorde@gmail.com>
@chapulina, Fixed windows build, there are some tests failing. The tests that I have edited INTEGRATION_factory it's working. |
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.
Functionality works, the new tests pass and it looks like there are no regressions 👍
Some of the bullet point from the related issue: #2406
Models are recorded in
~/.ignition/fuel
I don't need to set up this environment variable.This PR allows to load/download models from Fuel in the sdf files
I create this world to test these features:
I used gzserver and the model are being downloaded
I saved the world with some fuel models. I reopenned the file again and models are shown properly. Some of the URIs are hardcoded to absolute path in my computer
If I record a log and then I remove the fuel models from
~/.ignition/fuel
some of the models are not visualize properly (meshes and textures are not being shown). I think It's because how the world is saved, it's using absolute paths.@chapulina can you give some examples of these worlds?
Signed-off-by: ahcorde ahcorde@gmail.com