102 lines (80 with data), 3.5 kB
//This is the calibration1 file, it will calibrate all muscle in the leg in
//a neutral position (all joint angles in the drivers are zero)
//The subsequent calibrations 2 and 3 will overwrite some of the values
//obtained in this study
AnyFolder LegCal1 ={
AnyComponentDefinition obj = {};
AnyFolder &Pelvis = ...HumanFolderRef.Trunk.SegmentsLumbar.PelvisSeg;
AnyFolder &Sacrum = ...HumanFolderRef.Trunk.SegmentsLumbar.SacrumSeg;
AnyFolder &LegSegSide = .SideHumanFolderRef.Leg.Seg;
AnyFolder &LegJointsSide = .SideHumanFolderRef.Leg.Jnt;
AnyFolder &SacrumPelvisJnt = ...HumanFolderRef.Trunk.JointsLumbar.SacrumPelvisJnt;
AnyFolder &MusCalSide = .SideHumanFolderRef.Leg.Mus;
AnyFolder &MusParCalSide = .SideHumanFolderRef.Leg.MuscleModels;
AnyFixedRefFrame ground = {
AnyRefNode node = {
ARel=..Pelvis.Axes0;
sRel=..Pelvis.r0;
};
};
AnyKinEq ThoraxFix = {
AnyKinMeasure& PelvisThoraxExtension = ....HumanFolderRef.Interface.Trunk.PelvisThoraxExtension;
AnyKinMeasure& PelvisThoraxLateralBending = ....HumanFolderRef.Interface.Trunk.PelvisThoraxLateralBending;
AnyKinMeasure& PelvisThoraxRotation = ....HumanFolderRef.Interface.Trunk.PelvisThoraxRotation;
};
AnyKinEq PelvisFix = {
AnyKinLinear Lin = {
AnyRefFrame &ground = ..ground.node;
AnyRefFrame &Pelvis = .....HumanFolderRef.Trunk.SegmentsLumbar.PelvisSeg;
};
AnyKinRotational Rot = {
Type = RotAxesAngles;
AnyRefFrame &ground = ..ground.node;
AnyRefFrame &Pelvis = .....HumanFolderRef.Trunk.SegmentsLumbar.PelvisSeg;
};
};
AnyKinEqSimpleDriver PelvisSacrumFix = {
AnyKinMeasure& Jnt = .SacrumPelvisJnt;
DriverPos = {0,0,0};
DriverVel = {0,0,0};
Reaction.Type = {Off,Off,Off};
};
AnyKinEqInterPolDriver Hip = {
AnyKinRotational &Spherical = ..SideInterfaceFolderRef.HipFlexion.HipMeasure;
Type = PiecewiseLinear;
T = {0.0, 0.1 , 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};
Data = { {110,130,-20,-20,0,0,0,0,0,0},
{0,0,0,0,0,0,40,-25,0,0},
{0,0,0,0,0,0,0,0,35,45}
}*pi/180; // Flexion - Abduction - internal rotation
Reaction.Type = {Off, Off, Off};
};
AnyKinEqInterPolDriver Knee = {
AnyKinMeasure& Hinge = ..SideInterfaceFolderRef.KneeFlexion;
Type = PiecewiseLinear;
T = {0.0, 0.1 , 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};
Data = {{0,150,0,150,0,0,0,0,0,0}}*pi/180; // ? degrees knee flexion
Reaction.Type = {Off};
};
AnyKinEqInterPolDriver Ankle = {
AnyKinMeasure& Hinge = ..SideInterfaceFolderRef.AnklePlantarFlexion;
Type = PiecewiseLinear;
T = {0.0, 0.1 , 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};
Data = {{0,0,0,0,20,-50,0,0,0,0}}*pi/180;
Reaction.Type = {Off};
};
AnyKinEqInterPolDriver SubTalar = {
AnyKinMeasure& Hinge = ..SideInterfaceFolderRef.SubTalarEversion;
Type = PiecewiseLinear;
T = {0.0, 0.1 , 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};
Data = {{0,0,0,0,0,0,0,0,10,-20}}*pi/180;
Reaction.Type = {Off};
};
};
// The study: Operations to be performed on the model
AnyBodyCalibrationStudy LegCalibrationStudyFull = {
AnyFolder &ref=.LegCal1;
nStep = 20;
InitialConditions.SolverType = KinSolOverDeterminate;
Kinematics.PosAnalysisOnlyOnOff = On;
};