Search found 56 matches

by Axel Koussou
Mon Nov 23, 2020 1:10 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi Thomas,

Thank you for your answer.

It works !
Last question : Just for curiosity, how could I have known that I should use setMinimumActivation() before calling initSystem() ?
I have found the information on the OpenSim API page.

Thanks in advance,

Regards
by Axel Koussou
Fri Nov 20, 2020 9:22 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi Thomas, Thanks for your answer. I adapt your code for MatLab : import org.opensim.modeling.* model=Model(); muscle=Millard2012EquilibriumMuscle('muscle', 1.0, 0.1, 0.1, 0.0); vec1=osimVec3FromArray([0 0 0]); vec2=osimVec3FromArray([0.2 0 0]); %muscle.addNewPathPoint('p1', model.getGround(), osimV...
by Axel Koussou
Fri Nov 20, 2020 1:14 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi Thomas, Thanks for your answer. As you can see in my previous post (the 7th of this topic), I did use setMinimumActivation(). Nevertheless, by comparing with your code, I did not use realizeVelocity (Could you explain to me why you add this line?). So, I added this line too. My code is now : for ...
by Axel Koussou
Thu Nov 19, 2020 12:42 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi Thomas, Thanks for your answer. Of course, I read the documentation for the Millard2012EquilibriumMuscle class. But may be, I did not understand it well. The quote you made specify that this condition of a non-zero activation is for "an elastic tendon without fiber damping". Nevertheless in my mo...
by Axel Koussou
Wed Nov 18, 2020 3:02 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Here is the code that I'm using: for i=0:num_muscles-1 MuscMill=Millard2012EquilibriumMuscle.safeDownCast(muscle_set.get(i)); MuscMill.setMinimumActivation(0); MuscMill.setActivation(state,0); MuscMill.getActivation(state); %muscle_set().get(i).setActivation(state,0); %muscle_set().get(i).getActivat...
by Axel Koussou
Wed Nov 18, 2020 2:00 am
Forum: OpenSim
Topic: Setting muscle excitation problem in matlab
Replies: 5
Views: 1114

Re: Setting muscle excitation problem in matlab

Hi Ratna, Sorry for reopening this topic, I won't be able to answer to your questions, but I'm facing a problem that it seems you were able to suceed. Indeed, I would like to set the activation of my muscles to 0. As you, I'm using : model.getMuscles().get(i).setActivation(state,0); But, when I'm us...
by Axel Koussou
Mon Nov 16, 2020 4:39 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi Thomas,

Thank you for your answer. It works well now, I can obtain the passive fiber elastic force along the tendon.

Nevertheless, I am still not able to set my muscle activation to 0.

Do you have any idea of what I'm doing wrong ?

Thanks in advance,

Regards
by Axel Koussou
Fri Nov 13, 2020 7:09 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi, I try to implement the code suggest by Carmichael, using the function from the Muscle parent class, to compute the muscle forces at each time point in the motion by updating the state and setting the muscle activation to 0. Unfortunately my code doesn't work. Below you can find a snippet of it :...
by Axel Koussou
Tue Nov 10, 2020 6:52 am
Forum: OpenSim
Topic: Looking for an appropriate lower body model
Replies: 2
Views: 409

Re: Looking for an appropriate lower body model

Hi Youngmin Chun,

Sorry for reopening this topic, but I'm also looking for this kind of model.
Have you finally suceed to find a model with 3 DOF for knee joint and the subtalar joint.

Thanks in advance,

Regards
by Axel Koussou
Fri Nov 06, 2020 2:16 am
Forum: OpenSim
Topic: Estimation of passive joint torques
Replies: 17
Views: 2420

Re: Estimation of passive joint torques

Hi Carmichael, Thank you for your reply. I'm already aware of this page, which indeed can help me. Nevertheless, there is a grey area on how I should operate to get the passive moments. The thing is we compute experimentally by inverse dynamics this passive moments during an ankle mobilization and w...