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

SW2URDF: Inferring the joint geometry failed... #135

Open
dlerner97 opened this issue Feb 6, 2023 · 2 comments
Open

SW2URDF: Inferring the joint geometry failed... #135

dlerner97 opened this issue Feb 6, 2023 · 2 comments

Comments

@dlerner97
Copy link

dlerner97 commented Feb 6, 2023

  1. SolidWorks 2022
  2. 1.6.0-4-g7f85cfe

Whenever I export an URDF, I fully constrain all SW2URDF parameters and do not rely on the automatic joint generation. Yet, very often I receive an error when I try to export them (as shown in the image below). This happens quite frequently when I have a single mesh/part but need to make a fixed joint between links at two locations on the part. I know this is an odd use case but it allows us to compose a sequence of URDF's at runtime by creating 6*0 joints between the output link of one part and an input link of a connected URDF. Because this is a fixed and fully constrained joint offset, this should be easy with the urdf exporter but very commonly errors out upon exporting. This also happens every so often when exporting actual assemblies with fully constrained mates as fixed joints. I cannot seem to find much of a pattern there but I'm hoping that fixing one will fix the other. I have attached an error message as well as a pack-and-go zip folder containing an assembly with the specific issue. I have also attached the logs in case they help.

I have another example in this ROS question: https://answers.ros.org/question/403261/sw2urdf-inferring-the-joint-geometry-failed/?answer=412226#post-id-412226

inferring_joint_geom_ex_error

infer_joint_geom_ex_assem.zip
sw2urdf.log

@SammyRamone
Copy link

I had the same error message in my assembly. I just had two parts that I wanted to connect with a fixed link. Each of the parts had a sketch with the point marked where they are to be joined together. The first part was set fixed and the second one was connected by connecting those two sketeches without any DoF left. Manually setting the joint type at export to "fixed" did not resolve the issue.
I finally fixed this by also manually creating the joint origin and axis (by adding an coordinate system and axis at the point where both parts are connected). This resolved the issue and the export now works.

@dlerner97
Copy link
Author

Thanks for the input! The thing is, I always add my own coordinate systems and a fixed joint doesn't need an axis. Other than the axis, I never leave any input blank and input my own values for all of them and I still often get this error.

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

No branches or pull requests

2 participants