ros / solidworks_urdf_exporter

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

Failing to export STL #89

Open thiagoribeirodamotta opened 5 years ago

thiagoribeirodamotta commented 5 years ago

Solidworks Premium 2018 x64 SP2.0

I've been testing the SW2URDF add in with two different models so far: 1 - https://grabcad.com/library/kuka-kr16-industrial-robotic-arm-1 2 - https://grabcad.com/library/xls-150-rov-with-manipulators

I'm pretty much using every default configuration available. On kuka kr16 model, the urdf tree is basically the same as the sldprt file: base is base_link, rotary_head is its child, lower_arm is rotary_head childs and so on, with the exception of the servo files, where both a1servo are children of rotary_head (each with its own link, and they should be a fixed joint), and a3 and the 3 a4a5a6 servos are children of upper_arm. a3 has its own link, while the 3 a4a5a6 are togheter on the same Link component.

About the same goes for xls-150-rov. Its body is the base_link, with each arm being a separated child and the rest is pretty much just a single branch of the tree.

The problem I'm having right now is that both Upper Arm from kuka kr16 and Schilling T3 Jaw_Shells from xls-150-rov are not saving to STL format. Their Link component have only 1 object each.

After debugging ActiveDoc.Extension.SaveAs method, it justs returns errors = 1, which doesn't really mean anything special, so I'm kinda lost on how to fix this.

Manually exporting the full assembly, either by separate parts or in a single stl file, works just fine.

Any hint how to fix this?

brawner commented 5 years ago

Thanks for including the models. I'll take a look at this when I can get some time.

Just so you're aware there is an export STL bug in SW 2018 up to SP 4. Generally the issue is that the meshes aren't exported with the correct coordinate system, so it doesn't sound like your issue is related to this. However, I still highly recommend using this tool with SP 5.