Page 1 of 1

OpenSim Teaching Materials Public Forum

Posted: Thu Jun 07, 2018 6:42 pm
by admin
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.

Re: OpenSim Teaching Materials Public Forum

Posted: Fri Nov 16, 2018 6:24 am
by sfbljmu
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

Re: OpenSim Teaching Materials Public Forum

Posted: Mon Apr 08, 2019 11:55 pm
by saad-khan
I am running into the same issue.

Re: OpenSim Teaching Materials Public Forum

Posted: Tue Nov 05, 2019 12:28 pm
by mcgleeno
Did you ever get a solution to this problem, I am running into the same issue.
Thanks in advance.

Re: OpenSim Teaching Materials Public Forum

Posted: Wed Nov 13, 2019 5:05 am
by bunker
Seems I fix the problem....

here the model!

Andrea
simplified_cycling_modelV4.osim
(159.64 KiB) Downloaded 82 times

Re: OpenSim Teaching Materials Public Forum

Posted: Tue Mar 10, 2020 11:43 pm
by kiragupta
Great Information was very useful for me.

Artificial Intelligence Course In Hyderabad

Re: OpenSim Teaching Materials Public Forum

Posted: Fri Mar 27, 2020 4:41 am
by micheal
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?

Re: OpenSim Teaching Materials Public Forum

Posted: Fri Jun 30, 2023 12:23 am
by kyoshimi
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>