OpenSim Teaching Materials Public Forum

We created a simplified cycling model and a GUI concept for a teaching application.
POST REPLY
User avatar
SimTK Admin
Site Admin
Posts: 336
Joined: Tue Mar 15, 2011 12:32 pm

OpenSim Teaching Materials Public Forum

Post by SimTK Admin » Thu Jun 07, 2018 6:42 pm

Welcome to the OpenSim Teaching Materials public forum. Feel free to browse or search the topics for helpful information, or post a topic of your own.

User avatar
Scott Brennan
Posts: 2
Joined: Wed Sep 05, 2018 5:27 am

Re: OpenSim Teaching Materials Public Forum

Post by Scott Brennan » Fri Nov 16, 2018 6:24 am

Hello

I'm working on an OpenSim laboratory session for a sports biomechanics course and wanted to utilise the cycling model available on the Simtk website. It was working in the version 4 beta but now I've upgraded to the new release of version 4.0 the model doesn't load. I'm now getting this error:
Failed to connect Socket 'child_frame' of type PhysicalFrame (details: Component 'bb' could not find '../crank' of type PhysicalFrame. Make sure a component exists at this path and that it is of the correct type.
Thrown at component.h:764 in getComponent().).
In Object 'bb' of type CustomJoint.
Thrown at component.cpp:312 in finalizeConnections().

I'm at a loss why it isn't loading in the new version. When I look at the model XML file there is a "crank" body and the custom joint doesn't appear to have any errors that would stop the model form being loaded.

<CustomJoint name="bb">
<!--Path to a Component that satisfies the Socket 'parent_frame' of type PhysicalFrame (description: The parent frame for the joint.).-->
<socket_parent_frame_connectee_name>ground_offset</socket_parent_frame_connectee_name>
<!--Path to a Component that satisfies the Socket 'child_frame' of type PhysicalFrame (description: The child frame for the joint.).-->
<socket_child_frame_connectee_name>../crank</socket_child_frame_connectee_name>
<!--List containing the generalized coordinates (q's) that parameterize this joint.-->
<coordinates>

Any thoughts would be much appreciated,
Scott

User avatar
Saad Khan
Posts: 2
Joined: Tue Apr 02, 2019 7:13 pm

Re: OpenSim Teaching Materials Public Forum

Post by Saad Khan » Mon Apr 08, 2019 11:55 pm

I am running into the same issue.

User avatar
Oisin McGleenan
Posts: 1
Joined: Tue Oct 22, 2019 6:57 am

Re: OpenSim Teaching Materials Public Forum

Post by Oisin McGleenan » Tue Nov 05, 2019 12:28 pm

Did you ever get a solution to this problem, I am running into the same issue.
Thanks in advance.

User avatar
Andrea Morelli
Posts: 89
Joined: Thu Jan 24, 2008 1:10 pm

Re: OpenSim Teaching Materials Public Forum

Post by Andrea Morelli » Wed Nov 13, 2019 5:05 am

Seems I fix the problem....

here the model!

Andrea
simplified_cycling_modelV4.osim
(159.64 KiB) Downloaded 66 times

User avatar
Kira Gupta
Posts: 1
Joined: Tue Mar 10, 2020 11:39 pm

Re: OpenSim Teaching Materials Public Forum

Post by Kira Gupta » Tue Mar 10, 2020 11:43 pm

Great Information was very useful for me.

Artificial Intelligence Course In Hyderabad

User avatar
micheal Sacharin
Posts: 8
Joined: Mon Apr 08, 2019 3:45 am

Re: OpenSim Teaching Materials Public Forum

Post by micheal Sacharin » Fri Mar 27, 2020 4:41 am

Thanks Andrea for fixing the .osim file for version 4, may I ask what did you do exactly ? I now have problems running the forward analysis *from the project files, since I get the hip moving instead of being fixed. How can I correct this problem?

User avatar
Yoshimi Kenichiro
Posts: 3
Joined: Sun Jun 23, 2019 4:23 pm

Re: OpenSim Teaching Materials Public Forum

Post by Yoshimi Kenichiro » Fri Jun 30, 2023 12:23 am

In order to lock the hip movement, it seems that line 914 in the simplified_cycling_modelV4.osim file needs to be changed as follows:

Code: Select all

<locked>true</locked>

POST REPLY