Hi Sylvain,
Thank you very much for your reply. To only lock inversion/eversion, I made the following changes:
//Right Ankle driver
AnyKinEqSimpleDriver AnkleDriverRight={
AnyKinMeasureOrg &ref1=…HumanModel.BodyModel.Interface.Right.AnklePlantarFlexion;
AnyKinMeasureOrg &ref2=…HumanModel.BodyModel.Interface.Right.AnkleEversion;
DriverPos = pi/180*{
.JntPos.Right.AnklePlantarFlexion,
0*.JntPos.Right.SubTalarEversion};
DriverVel = pi/180*{
.JntVel.Right.AnklePlantarFlexion,
0*.JntVel.Right.SubTalarEversion};
Reaction.Type={Off,Off};
};
However, RunMotionAndParameterOptimizationSequence suddenly failed, and I had a lot of errors about constraints.
Failed to resolve kinematic constraints. Newton relaxation too small. (final kin. error = 2.368339E-001)
Constraint no. 0 above error tolerance 0.001000, error = 0.011728.
Constraint no. 1 above error tolerance 0.001000, error = 0.014557.
Constraint no. 2 above error tolerance 0.001000, error = 0.001151.
Constraint no. #1 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Trunk.JointsLumbar.C0C1Jnt.Constraints’ above error tolerance 0.001000, error = 0.001538.
Constraint no. #0 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Right.Leg.Jnt.Ankle.Constraints’ above error tolerance 0.001000, error = 0.012532.
Constraint no. #1 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Right.Leg.Jnt.Ankle.Constraints’ above error tolerance 0.001000, error = 0.019715.
Constraint no. #2 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Right.Leg.Jnt.Ankle.Constraints’ above error tolerance 0.001000, error = 0.002689.
Constraint no. #0 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Right.Leg.Jnt.Knee.Constraints’ above error tolerance 0.001000, error = 0.004896.
ERROR(OBJ.MCH.KIN3) : GaitLowerExtremity.main.any : KinematicStudyForParameterIdentification.InitialConditions : Kinematic analysis failed in time step 0
Macro command > operation Main.Studies.MotionOptimization.Kinematics
Error : Main.Studies.MotionOptimization.Kinematics : object is not AnyOperation.
But, if I don’t add the ankle drivers, this optimization can succeed, although it usually takes around 90 - 120 mins to complete the optimization. I thought this was due to that we did not use LMT5 and RMT5 markers. Then, we added LMT5 and RMT5 markers and collected a new data. But, it still took 90 mins to complete the optimization.
So, I am thinking if our data collection protocol might not be suitable for Anybody. For the data collection, we ask a subject to wear a ski type boot only for the right foot. The boot was attached to the wood plate. The wood plate is also placed above and attached to the force plate. We normally put three markers on the boot for toe, heel, lateral malleolus. The sizes of our boots are bigger than those of regular shoes. So, I was wondering if the sizes of the boots may influence the optimization, specifically when the model is being scaled to our C3D data. Please, let me know what you think of our method.
Thank you very much.