Forums Anyscript.org  

Go Back   Forums Anyscript.org > Professional Forum > AnyGait

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2018, 12:45 PM
So_Any So_Any is offline
Member
 
Join Date: May 2015
Posts: 46
Question Removing a muscle in MoCapModel

Hi everyone,

I would like to remove the left AdductorLongus from the MoCapModel to simulate a zero activation from this muscle (only 1 & 2 for the moment, to be sure my code is correct).
I tried to follow a thread that I found with a similar problematics(http://forum.anyscript.org/showthread.php?t=3611) but unfortunately, I do not manage to load the model.

Here are the changes I made in MoCap_FullBody.main.any :

AnyFolder Studies ={

MechObjectExclude = arrcat(
ObjSearch("Main.Studies.HumanModel.BodyModel.Left. Leg.Mus.AdductorLongus1", "AnyViaPointMuscle"),
ObjSearch("Main.Studies.HumanModel.BodyModel.Left. Leg.Mus.AdductorLongus2", "AnyViaPointMuscle")
);

 
// Usually, there is no need to make changes in the following files. PLease be aware. that
// changes in the Kinematics and InverseDynamics may lead to model failure and/or unrealistic results:
#if MotionAndParameterOptimizationModel
#include "Model/Kinematics.any"
#endif

#if InverseDynamicModel
#include "Model/InverseDynamics.any"
#endif

};


What am I doing wrong ?

Thank you in advance for your help,
Reply With Quote
  #2  
Old 02-28-2018, 01:00 PM
pgalibarov's Avatar
pgalibarov pgalibarov is offline
Senior Member
 
Join Date: Oct 2010
Posts: 944
Default

Hi,

You should add this folder into the Inverse Dynamics study folder. You are trying to put in the collective folder Studies, which contains 2 actual studies - kinematic and kinetic.

See here.

Alternative approach is shown here.

Kind regards,
Pavel
Reply With Quote
  #3  
Old 03-08-2018, 09:32 AM
So_Any So_Any is offline
Member
 
Join Date: May 2015
Posts: 46
Default

Great, that's perfectly working now after changing the folder.

Thank you very much for your answer, as usefull as usual.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:55 PM.