Skip to content
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

gz-sim: Blender SDF Exporter #207

Closed
1 of 2 tasks
azeey opened this issue Aug 31, 2023 · 2 comments · Fixed by gazebosim/gz-sim#2156
Closed
1 of 2 tasks

gz-sim: Blender SDF Exporter #207

azeey opened this issue Aug 31, 2023 · 2 comments · Fixed by gazebosim/gz-sim#2156

Comments

@azeey
Copy link
Contributor

azeey commented Aug 31, 2023

Setup

  • Os: Ubuntu Jammy
  • BuildType: Binary

Links

Checks

  • Instructions work
  • Images (if there are any) match the result

You can find the code used to generate this test case here

@matosinho
Copy link

Hello!

I was partially successfull with the tutorial. I was able to use the script to generate the .sdf file, but they didn't export the material of the parts with colors. In the tutorial it commented that this might not be possible as well. I guess only with textures and UV mapping it would work, but I couldn't make it happen. If someone can share a tutorial or tips of how exporting the models from Blender with material or how to config the UV mapping to also be converted it would be nice.

Here is a picture of the world in blender:
Screenshot from 2023-09-10 17-08-13

Here it is the export in gazebo:
Screenshot from 2023-09-10 17-08-46

Here are the warnings on the terminal:

Warning [Utils.cc:130] [/sdf/model[@name="test"]/link[@name="testlink"]/collision[@name="collision"]/contact:/home/matosinho/dev/gazebo_harmonic_tutorial_party/example_tutorials/model.sdf:L63]: XML Element[contact], child of element[collision], not defined in SDF. Copying[contact] as children of [collision].
Warning [Utils.cc:130] [/sdf/model[@name="test"]/link[@name="testlink"]/collision[@name="collision"]/collide_bitmask:/home/matosinho/dev/gazebo_harmonic_tutorial_party/example_tutorials/model.sdf:L64]: XML Element[collide_bitmask], child of element[collision], not defined in SDF. Copying[collide_bitmask] as children of [collision].
Warning [Utils.cc:130] [/sdf/static:/home/matosinho/dev/gazebo_harmonic_tutorial_party/example_tutorials/model.sdf:L68]: XML Element[static], child of element[sdf], not defined in SDF. Copying[static] as children of [sdf].
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
Warning [Utils.cc:130] [/sdf/model[@name="test"]/link[@name="testlink"]/collision[@name="collision"]/contact:<data-string>:L61]: XML Element[contact], child of element[collision], not defined in SDF. Copying[contact] as children of [collision].
Warning [Utils.cc:130] [/sdf/model[@name="test"]/link[@name="testlink"]/collision[@name="collision"]/collide_bitmask:<data-string>:L62]: XML Element[collide_bitmask], child of element[collision], not defined in SDF. Copying[collide_bitmask] as children of [collision].

If any additional tests need to be made, let me know.

azeey added a commit to azeey/gz-sim that referenced this issue Sep 20, 2023
Fixes the warnings reported in gazebosim/gazebo_test_cases#207

Signed-off-by: Addisu Z. Taddese <[email protected]>
@azeey
Copy link
Contributor Author

azeey commented Sep 20, 2023

gazebosim/gz-sim#2156 should fix the warnings. I'll go ahead and close this since the instructions work.

@azeey azeey closed this as completed Sep 20, 2023
azeey added a commit to gazebosim/gz-sim that referenced this issue Sep 20, 2023
Fixes the warnings reported in gazebosim/gazebo_test_cases#207

Signed-off-by: Addisu Z. Taddese <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants