As recommended I post and upload my model here, but I am not able to upload my file,because I get kicked out every time when I want to Log In for attaching the files.
So I just copy and pasted my changes in here again:
[SIZE=1]AnyFolder PostureVel={
AnyVar GlenohumeralFlexion = [COLOR=red]45/Main.Study.tEnd; [/COLOR]
AnyVar GlenohumeralAbduction [COLOR=red]= 0;[/COLOR]
AnyVar GlenohumeralExternalRotation = 0;
}
AnyFolder Drivers = {
//Abduction movement similar to Bergmann’s experiment.
AnyKinEqFourierDriver [COLOR=black]FlexionDriverRight={[/COLOR]
AnyKinMeasureOrg &ref1 =…HumanModel.Interface.Right.Glenohumeral[COLOR=red]Flexion;[/COLOR]
Type = Sin;
Freq = 0.0625; // 0.1;
A = { {0.0, 45*pi/180} };
B = { {0.0, 0.0 } };
Reaction.Type = {Off};
};
AnyBodyStudy Study = {
AnyFolder &Model = .Model;
// Output variables collecting the GH forces in the pertinent coordinate frame
AnyVec3 GHReactionInHumerus = -(Model.HumanModel.Right.ShoulderArm.Seg.Humerus.gh .Bergmann.Axes’
*Model.HumanModel.Right.ShoulderArm.Jnt.GHReaction s.ResultanForce.FTotalGlobal’)’;
InverseDynamics.Criterion.Type=MR_Quadratic;
AnyKinMeasureLinComb ShoulderAbduction_Right_InDegree = {
AnyKinMeasure& ref = Main.HumanModel.BodyModel.Interface.Right.Glenohum eral[COLOR=red]Flexion ;[/COLOR]
Coef = {{180/pi}};
OutDim = 1;
};
The Model loads without any ERRORS, but at the beginning of the Inverse Dynamics:
ERROR(OBJ.MCH.KIN3): Study.InverseDynamics: Kinematic analysis failed in step1
Where the ERROR?
Do I need to change something in this part?:
[COLOR=#0000ff][COLOR=#007f00][COLOR=#007f00][SIZE=1]// Keep the hand in the frontal plane
[/SIZE][COLOR=#0000ff]AnyKinEq HandConstraint = {
AnyKinLinear lin = {
AnyRefFrame &GHnode = Main.Model.HumanModel.Right.ShoulderArm.Seg.Scapul a.gh;
AnyRefFrame &Hand = Main.Model.HumanModel.Right.ShoulderArm.Seg.Hand;
Ref = 0;
};
Reaction.Type = {Off};
MeasureOrganizer = {2};
};
[/COLOR][/COLOR][/COLOR][/COLOR]
[/SIZE][SIZE=1][SIZE=3][SIZE=3]
[SIZE=2][COLOR=black]Let me know if you eed more, I hope that helps.
[SIZE=2]cheers Marc
[/SIZE][/SIZE][/COLOR][/SIZE][/SIZE]
[/SIZE]