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

add world 'dae export ready' option, bugfixes for alpha values #356

Closed
wants to merge 8 commits into from

Conversation

ddengster
Copy link
Contributor

@ddengster ddengster commented Jun 4, 2021

Bug fix/Fix applied

Alpha bugfixes

  1. Diffuse/Specular color value standardization: In our sdf exporters we use 3 floats for rgb, this standardizes it to 4 values rgba with the alpha being 1.0.
  2. .mtl file alpha fixes: Python would output alpha values as <param.ParamValue....>, a fix has been applied to cast it properly to floating point. Before this fix walls would appear black when imported in blender after being exported to dae.

New feature implementation

Implemented feature

Add option "ignition_dae_export" to export world files ready for ignition to do dae exports.

Implementation description

This option enables our worlds to be 'dae export ready' via adding the correct plugin tags and removing any robots.

Related ignition PR: gazebosim/gz-sim#474
Downstream PR: open-rmf/rmf_demos#53

Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
@codebot
Copy link
Contributor

codebot commented Jun 4, 2021

@luca-della-vedova I'll defer to your Ignition knowledge here and understanding of how DAE export would be used 🙇

Comment on lines +185 to +188
if dae_export_plugin is False:
for vertex_idx, vertex in enumerate(self.vertices):
if 'spawn_robot_type' in vertex.params:
self.generate_robot_at_vertex_idx(vertex_idx, world_ele)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should limit the filtered objects to only robots or to all the dynamic objects, i.e. lifts / doors.
What would you recommend?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup i forgot about that, we should remove those

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed ac3081a

ddengster and others added 2 commits June 8, 2021 14:28
@ddengster ddengster closed this Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants