-
Notifications
You must be signed in to change notification settings - Fork 295
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 tutorial for blender_sdf_exporter
#1718
Fix tutorial for blender_sdf_exporter
#1718
Conversation
Signed-off-by: Andrej Orsula <orsula.andrej@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.
Thanks for the fixes! For consistency, we should make the same fixes in a few other places in the script. I found a few, but that might not be all of them.
@@ -22,7 +22,7 @@ def export_sdf(prefix_path): | |||
meshes_folder_prefix = 'meshes/' | |||
|
|||
# Exports the dae file and its associated textures | |||
bpy.ops.wm.collada_export(filepath=prefix_path+meshes_folder_prefix+dae_filename, check_existing=False, filter_blender=False, filter_image=False, filter_movie=False, filter_python=False, filter_font=False, filter_sound=False, filter_text=False, filter_btx=False, filter_collada=True, filter_folder=True, filemode=8) | |||
bpy.ops.wm.collada_export(filepath=os.path.join(prefix_path, meshes_folder_prefix, dae_filename), check_existing=False, filter_blender=False, filter_image=False, filter_movie=False, filter_python=False, filter_font=False, filter_sound=False, filter_text=False, filter_btx=False, filter_collada=True, filter_folder=True, filemode=8) |
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.
Would be good to break this long line into 80-character lines.
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 formatted everything via the last commit e17968b using isort
and black
with default settings.
Originally, I did not want to do this because of the number of changes this generates (although this commit fixes a lot of things like quote and indentation inconsistency). Please, let me know if I should revert it and fix only the line lengths.
Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
Codecov Report
@@ Coverage Diff @@
## gz-sim7 #1718 +/- ##
===========================================
+ Coverage 63.93% 64.22% +0.29%
===========================================
Files 334 336 +2
Lines 26333 26567 +234
===========================================
+ Hits 16836 17063 +227
- Misses 9497 9504 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
🦟 Bug fix
Summary
I encountered 2 issues when trying the tutorial.
.dae
) would get exported correctly under./meshes/model.dae
. However, SDF file refer to./model.dae
as a relative URI for the mesh, which prevented Gazebo from finding it (assuming that only the parent directory of the model is part ofGZ_SIM_RESOURCE_PATH
). Corrected the path.Tested both with Blender 2.82 and 3.2
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.