-
Notifications
You must be signed in to change notification settings - Fork 105
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
Exported STLs are in incorrect (Global?) Coordinate System #87
Comments
Please let me know if specifying top level geometry fixes the issue. I haven't been aware of any issues related to the sub-assembly geometry feature, so it would be good to know they exist. Also, I can't really help debug or try to find the issue unless I have access to a model that reproduces the issue. My email address is [email protected] if you'd like to communicate privately. |
We recreated all of the Coordinate Systems and Axes in the Top-Level assembly, converted the URDF tree to use those instead, and everything exported fine. Two Notes:
|
Excellent! I'm glad it worked for you, but might mean there is something strange going on. When the STL is saved, you just have to set the preference with the coordinate system name. That coordinate system name is constructed from its display name here: Its display name is constructed from the feature name and component name here: |
Oh and importantly, here is the method for taking that display name and getting the one in the SW model: |
Just to be clear:
So the STL has been set to save as |
In short, I'm not entirely sure. I would have to look at this in VS and dig into SW's API a bit more, but this definitely looks worthwhile a fresh investigation. It's been awhile since I looked at this bit of code. It might be a quirk of SW's API or it may be a bug in my code. |
Okay 😃 As I said, We're gotten everything up and running now so my issue has been resolved. If you do take a look at this again, re-read my first post as I've summarized some of the things that have changed in the Solidworks API. And I'll keep subscribed to this issue (or feel free to reach out) if there's anything I can do to help. |
Closing issue. Let me know if you have any related issues. |
Solidworks 2019 SP3:
Description
We're trying to export a robot model with multiple sub-assemblies and sub-sub-assemblies etc. The model is quite complex and due to some mating issues the automatic coordinate system / axis generation has been having trouble determining the correct coordinate systems / axes. In general we'd rather specify them manually anyway so that we have full control over placement etc, so we've decided to manually create coordinate systems / axes for control and to get around the automatic detection issues we've been having.
The robot has multiple repeated parts so to simplify the creation of coordinate systems / axes we've added them to the sub-assemblies. This worked well and the URDF Tree Export Configuration window allowed us to select the specific sub-assembly coordinate system / axis we wanted to use for each link / joint.
Unfortunately when exported and viewed in RViz / Gazebo the model is not being assembled correctly. Importing all of the exported STLs into MeshLab the model is assembled correctly, so it appears that all of the STLs are being exported in the same (assumed global) coordinate system.
Things I've tried:
swFileSaveAsCoordinateSystem
has been obsoleted since Solidworks 2017 API; not sure what to changegeo
name so duplicated all coordinate systems so that each was uniquely named (but still specified in sub-assembly).SetLinkSpecificSTLPreferences
with the full (geo
+<component>
) name.None of the above resolved the issues.
Unfortunately, I can't share the Model; we could potentially try to recreate the issue with a test model, but I wanted to check if we were running into known behavior.
For now we're going to test a version of the model with all geometry specified in the Top Assembly.
The text was updated successfully, but these errors were encountered: