How do I solve this inverse kinematics issue

ahsan_ahmed
ahsan_ahmed Member Posts: 2 EDU

I have 2 rotatable arms, and when I try to mate them with a revolute, onshape can't solve the assembly and caues other mates to break:

image.png

image.png

Once mated:

image.png

Is there a way I can get the assembly to solve with inverse kinematics?
https://cad.onshape.com/documents/044489cf90bf8bba13046e46/w/f005f843b6ad9e5f2bf02ea4/e/e853c1892c9a9c5eecee8049

Best Answer

  • eric_pesty
    eric_pesty Member, pcbaevp Posts: 2,941 PRO
    Answer ✓

    I'm guessing there the links already have mates that constrain them on the Z direction and there is mis-match somewhere (could even just be a rounding error in the math).

    Change that revolute mate to a cylindrical mate to avoid this.

Answers

  • eric_pesty
    eric_pesty Member, pcbaevp Posts: 2,941 PRO
    Answer ✓

    I'm guessing there the links already have mates that constrain them on the Z direction and there is mis-match somewhere (could even just be a rounding error in the math).

    Change that revolute mate to a cylindrical mate to avoid this.

  • EvanReese
    EvanReese Member, Mentor Posts: 3,099 PRO

    Agree that a cylindrical mate is the way to go. Otherwise you have two different mates telling that part exactly where it should go, and even if they "say the same thing" software tolerance limits can cause failures. With cylindrical, only 1 mate is defining the z position of the link.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com