Search found 9 matches

by Matthias Kindler
Tue Jul 11, 2023 3:15 am
Forum: OpenSim Moco
Topic: Moco Inverse Clarification of Results
Replies: 3
Views: 430

Re: Moco Inverse Clarification of Results

Hi Nick, thanks for your answer. I built a lumbar spine model with 12 DGF muscle fascicles in this manner: (just as example) dgf = osim.DeGrooteFregly2016Muscle() dgf.set_max_isometric_force(79.58) dgf.set_optimal_fiber_length(0.1034) dgf.set_tendon_slack_length(0.0363) dgf.set_tendon_strain_at_one_...
by Matthias Kindler
Mon Jul 10, 2023 6:31 am
Forum: OpenSim
Topic: Moco Inverse Clarification of Results
Replies: 1
Views: 242

Re: Moco Inverse Clarification of Results

I noticed that there is another forum for moco... So if any mod sees this you can delete the post as I opened another one in the moco forum.
This is the post: viewtopicPhpbb.php?f=1815&t=16766&p=0&s ... f516bf4353

Sorry about that!
by Matthias Kindler
Mon Jul 10, 2023 6:29 am
Forum: OpenSim Moco
Topic: Moco Inverse Clarification of Results
Replies: 3
Views: 430

Moco Inverse Clarification of Results

Hello to all, I already posted this in the OpenSim forum, but I wasn't aware that there also is this forum! Sorry for any potential confusion.. I'm trying to calculate muscle forces for a specific motion with MocoInverse. I based my code on the examples I found in the docs (https://simtk.org/api_doc...
by Matthias Kindler
Fri Jul 07, 2023 4:28 am
Forum: OpenSim
Topic: Moco Inverse Clarification of Results
Replies: 1
Views: 242

Moco Inverse Clarification of Results

Hello to all, I'm trying to calculate muscle forces for a specific motion with MocoInverse. I based my code on the examples I found in the docs (https://simtk.org/api_docs/opensim/api_docs/). Unfortunately, when evaluating the results, I noticed that the muscle activation was the same as the force, ...
by Matthias Kindler
Fri Jun 30, 2023 1:05 am
Forum: OpenSim
Topic: Verification of Moco Predict Study with Integrator
Replies: 5
Views: 585

Re: Verification of Moco Predict Study with Integrator

Hello Ton, first of all, thank you very much for this explanation. I am still new to the topic and appreciate your experience! For clarification: Both Moco and the Integrator are open-loop and since they are on different time grids, errors accumulate and the forward simulation becomes unstable? I ha...
by Matthias Kindler
Wed Jun 28, 2023 10:55 pm
Forum: OpenSim
Topic: Verification of Moco Predict Study with Integrator
Replies: 5
Views: 585

Re: Verification of Moco Predict Study with Integrator

I noticed that this issue of diverging forward dynamics only occurs when there is gravitational force turned on. I ran the whole process (obtaining torques from moco, feeding those torques in the FD) without gravity and it went smoothly and the error between the first predicted kinematics and the on...
by Matthias Kindler
Wed Jun 28, 2023 8:01 am
Forum: OpenSim
Topic: ImportError: DLL load failed while importing _simbody
Replies: 4
Views: 506

Re: ImportError: DLL load failed while importing _simbody

Hello, for me this helped:
I guess you are using windows...
I had to add these two lines before every opensim import...

import os
os.add_dll_directory("C:/OpenSim 4.4/bin")

"C:/OpenSim 4.4/bin" could be different depending on where you installed Opensim
by Matthias Kindler
Wed Jun 28, 2023 7:57 am
Forum: OpenSim
Topic: Verification of Moco Predict Study with Integrator
Replies: 5
Views: 585

Re: Verification of Moco Predict Study with Integrator

Quick update: Now, the forward sim results look ok(ish) until about 1.4secs (total simulation time 3s). I made a mistake in the model, and basically wrong controls where assigned to an actuator. However, I still not understand why the state values diverge so much after 1.4secs. Could anyone help me?...
by Matthias Kindler
Thu Jun 22, 2023 12:15 pm
Forum: OpenSim
Topic: Verification of Moco Predict Study with Integrator
Replies: 5
Views: 585

Verification of Moco Predict Study with Integrator

Hello, I'm trying to verify some Moco outputs that I receive when running a predict study on my model. While the results from moco appear to be correct and also the visualization is nice and smooth, I get really weird (much higher) results for my states in the forward simulation. Also the visualizat...