ros / solidworks_urdf_exporter

SolidWorks to URDF Exporter
http://wiki.ros.org/sw_urdf_exporter
MIT License
392 stars 104 forks source link

Only one set of STLs are exported when using multiple display states #133

Open LifeDay opened 1 year ago

LifeDay commented 1 year ago

System Information

  1. SW 2021 SP 5.1
  2. v1.6.1 installed (feature tree still says v1.4)

Describe the bug

  1. The assembly contains visual and collision models
  2. Each link has the visual and collision model associated
  3. There are 3 display states: Visual, Collision, and Both
  4. I export the URDF twice. Once with the Collision display state active and once with Visual

I would expect that the Visual export would have the visual models in the mesh folder and vice versa for the Collision export.

However, both exports have only the collision models.

The attached file is a simplification that demonstrates the same behavior.

Is this a bug or am I doing something wrong here?

EXAMPLE.zip

brawner commented 1 year ago

Though using display states is probably the simplest means we have currently for creating simpler collision meshes with this tool, unfortunately, the tool doesn't take full advantage of them like this. You will have to export twice and manually copy meshes from one directory to another.

LifeDay commented 1 year ago

Right. I did export twice. Once for each display state (Visual and Collision). When I try to manually copy the meshes, both folders only have the collision meshes.