-
Notifications
You must be signed in to change notification settings - Fork 269
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
World exporter #474
World exporter #474
Conversation
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
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.
I haven't tried it yet. Just left some high-level comments. I also believe we need an ign-common3
release.
Would it be possible to add a short tutorial that describes what the world exporter is and how to use it? |
That is a good idea. Should I add it as a Readme file in the system plugin directory or is there a better place to add it? |
Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar>
Could you create a new one in the tutorials folder? https://github.com/ignitionrobotics/ign-gazebo/tree/ign-gazebo4/tutorials Be sure to link to it from tutorials.md.in. Those tutorials are generated when we do Thanks! |
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@gonzodepedro , I added a sample world that you could use in the tutorial. See: 63c9eb7 |
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.
Nice, it works for me!
@gonzodepedro , besides the tutorial, would it be possible to add a test under test/integration
? At a minimum, I think it could load a world that has one of each geometry type, and at the end we check that a collada file was generated (and delete 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.
This is awesome! I was able to generate a cave world and import it into blender. There is an issue related to transparency that I mention below that caused everything to be transparent, but otherwise, the world, with 524 submeshes loaded without a problem 🎉.
Signed-off-by: Louise Poubel <louise@openrobotics.org>
|
Codecov Report
@@ Coverage Diff @@
## ign-gazebo4 #474 +/- ##
===============================================
+ Coverage 77.24% 77.31% +0.06%
===============================================
Files 213 215 +2
Lines 11925 12029 +104
===============================================
+ Hits 9212 9300 +88
- Misses 2713 2729 +16
Continue to review full report at Codecov.
|
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@gonzodepedro , I believe all that is left is a test. |
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.
I left one more minor comment. Otherwise, with the addition of the test, I think this is ready to go.
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Test has been added in db69c56. I believe this completes this PR, pending CI. |
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.
LGTM, I just have some minor comments that would be nice to address, but don't need to block the PR.
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.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.
LGTM!
* Added world exporter Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Fixed CMake Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Changes based on review Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Added example world Signed-off-by: Nate Koenig <nate@openrobotics.org> * bump required ign-common version Signed-off-by: Louise Poubel <louise@openrobotics.org> * PR updates Signed-off-by: Nate Koenig <nate@openrobotics.org> * Update documentation to have simulation self terminate Signed-off-by: Nate Koenig <nate@openrobotics.org> * Rename world_export to collada_world_exporter Signed-off-by: Nate Koenig <nate@openrobotics.org> * Finish world exporter renaming Signed-off-by: Nate Koenig <nate@openrobotics.org> * Revert change Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added a tutorial Signed-off-by: Nate Koenig <nate@openrobotics.org> * Update transform Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added message Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added a test Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added more shapes Signed-off-by: Nate Koenig <nate@openrobotics.org> * Cleanup in two locations Signed-off-by: Nate Koenig <nate@openrobotics.org> * Fix build Signed-off-by: Nate Koenig <nate@openrobotics.org> * Apply scale, and fix codecheck Signed-off-by: Nate Koenig <nate@openrobotics.org> Co-authored-by: Louise Poubel <louise@openrobotics.org> Co-authored-by: Nate Koenig <nate@openrobotics.org>
* Added world exporter Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Fixed CMake Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Changes based on review Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Added example world Signed-off-by: Nate Koenig <nate@openrobotics.org> * bump required ign-common version Signed-off-by: Louise Poubel <louise@openrobotics.org> * PR updates Signed-off-by: Nate Koenig <nate@openrobotics.org> * Update documentation to have simulation self terminate Signed-off-by: Nate Koenig <nate@openrobotics.org> * Rename world_export to collada_world_exporter Signed-off-by: Nate Koenig <nate@openrobotics.org> * Finish world exporter renaming Signed-off-by: Nate Koenig <nate@openrobotics.org> * Revert change Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added a tutorial Signed-off-by: Nate Koenig <nate@openrobotics.org> * Update transform Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added message Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added a test Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added more shapes Signed-off-by: Nate Koenig <nate@openrobotics.org> * Cleanup in two locations Signed-off-by: Nate Koenig <nate@openrobotics.org> * Fix build Signed-off-by: Nate Koenig <nate@openrobotics.org> * Apply scale, and fix codecheck Signed-off-by: Nate Koenig <nate@openrobotics.org> Co-authored-by: Louise Poubel <louise@openrobotics.org> Co-authored-by: Nate Koenig <nate@openrobotics.org>
* Added world exporter Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Fixed CMake Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Changes based on review Signed-off-by: Gonzalo de Pedro <gonzalo@depedro.com.ar> * Added example world Signed-off-by: Nate Koenig <nate@openrobotics.org> * bump required ign-common version Signed-off-by: Louise Poubel <louise@openrobotics.org> * PR updates Signed-off-by: Nate Koenig <nate@openrobotics.org> * Update documentation to have simulation self terminate Signed-off-by: Nate Koenig <nate@openrobotics.org> * Rename world_export to collada_world_exporter Signed-off-by: Nate Koenig <nate@openrobotics.org> * Finish world exporter renaming Signed-off-by: Nate Koenig <nate@openrobotics.org> * Revert change Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added a tutorial Signed-off-by: Nate Koenig <nate@openrobotics.org> * Update transform Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added message Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added a test Signed-off-by: Nate Koenig <nate@openrobotics.org> * Added more shapes Signed-off-by: Nate Koenig <nate@openrobotics.org> * Cleanup in two locations Signed-off-by: Nate Koenig <nate@openrobotics.org> * Fix build Signed-off-by: Nate Koenig <nate@openrobotics.org> * Apply scale, and fix codecheck Signed-off-by: Nate Koenig <nate@openrobotics.org> Co-authored-by: Louise Poubel <louise@openrobotics.org> Co-authored-by: Nate Koenig <nate@openrobotics.org>
Adds a plugin to export worlds to meshes
Requires: gazebosim/gz-common#133
Signed-off-by: Gonzalo de Pedro gonzalo@depedro.com.ar