part defined Hinge joint but it rotating in circumference of circle path

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
pavan guled
Posts: 19
Joined: Mon Aug 07, 2017 9:42 am

part defined Hinge joint but it rotating in circumference of circle path

Post by pavan guled » Wed May 16, 2018 4:00 am

Hi all,
I have defined a custom joint similar to that of between Humerus(P) and Ulna radius hand(B) to the links of a manipulator, but thing is Joint as to perform like a hinge but it(B) rotating like following a circumference of the circle. So how to resolve this ?

Thanks and regards,
Pavan G

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by Thomas Uchida » Wed May 16, 2018 10:22 pm

Joint as to perform like a hinge
It sounds like you should be using a pin joint instead (https://simtk.org/api_docs/opensim/api_ ... Joint.html).

User avatar
pavan guled
Posts: 19
Joined: Mon Aug 07, 2017 9:42 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by pavan guled » Thu May 17, 2018 2:31 am

Hi Thomas,
Thanks for your reply, If i use Pin Joint then," one coordinate about the common Z-axis of parent and child joint frames" will happens but i want about the x-axis, so using custom joint.

Thanks and regards,
Pavan G

User avatar
pavan guled
Posts: 19
Joined: Mon Aug 07, 2017 9:42 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by pavan guled » Thu May 17, 2018 2:53 am

Hi,
And below you can find image of my problem.
1.jpg
1.jpg (76.63 KiB) Viewed 438 times

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by Thomas Uchida » Thu May 17, 2018 10:02 am

If i use Pin Joint then," one coordinate about the common Z-axis of parent and child joint frames" will happens but i want about the x-axis, so using custom joint.
You should still use a pin joint---just provide the orientationInParent and orientationInBody arguments. See the "Adding the Joint for the Platform Body" section on this page: https://simtk-confluence.stanford.edu/d ... lker+Model.

User avatar
pavan guled
Posts: 19
Joined: Mon Aug 07, 2017 9:42 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by pavan guled » Sat May 19, 2018 5:16 am

Hi Thomas,
Actually it solved co-ordinate issue, but the rotation of the part/body continues same as that of above, it's not acting like a hinge, Do i need to give any wrapObject/Constraint anything there? to remain part attached and only to swing ?

Thanks and regards,
Pavan G

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by Thomas Uchida » Sat May 19, 2018 4:46 pm

Please upload your model file.

User avatar
pavan guled
Posts: 19
Joined: Mon Aug 07, 2017 9:42 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by pavan guled » Sun May 20, 2018 3:16 pm

HI,
Here is the file .
trial2.osim
(81.78 KiB) Downloaded 114 times



Thanks and regards,
Pavan G

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by Thomas Uchida » Sun May 20, 2018 6:37 pm

You have not provided the geometry files ("NAssem - Nlink1-1.STL" and "NAssem - Nlink2-1.STL") so I can't reproduce the issue. Note, however, that the multibody system is defined independently of the geometry you attach to the bodies for visualization, so you might try using existing geometry files first (e.g., from the arm26 model). Once the mechanism is defined, you could then replace the arm26 geometry with your own.

User avatar
pavan guled
Posts: 19
Joined: Mon Aug 07, 2017 9:42 am

Re: part defined Hinge joint but it rotating in circumference of circle path

Post by pavan guled » Mon May 21, 2018 1:03 am

Hi Thomas,
Thanks a lot for your time. Sorry, forget to add the files. So here are the parts ,
NAssem - Nlink1-1.osim
(104.2 KiB) Downloaded 25 times
NAssem - Nlink2-1.osim
(151.11 KiB) Downloaded 20 times
, since it was not allowing me to add .stl files , I just renamed at the end by .osim. Please rename it by .stl once you download.

Thanks and regards,
Pavan G

POST REPLY