I am new to AnyBody and have had a few issues when using my own c3d file in the MoCap_LowerBody.main file. The c3d file has 28 anatomical markers plus tracking markers at the thigh and shank. The lab has two force platforms with Z=vertical plane.
The model seems to load fine, however when running the motion and parameter optimization an error occurs:
#### Macro command : RunMotionAndParameterOptimizationSequence(3:5)> classoperation Main.Studies.ParameterIdentification "Save design" --file="../Input/LowerBody-AnybodyTest-OptimizedParameters.txt"
Main.Studies.ParameterIdentification : Saving design...
#### Macro command : RunMotionAndParameterOptimizationSequence(4:5)> operation Main.Studies.MotionOptimization.Kinematics
#### Macro command : RunMotionAndParameterOptimizationSequence(5:5)> run
5.0) Kinematics (Operation: Main.Studies.MotionOptimization.Kinematics):
5.0.0) PreOperation (Operation: Main.Studies.MotionOptimization.Kinematics.PreOperation):
5.0.0.0) InitialConditions (Operation: Main.Studies.MotionOptimization.InitialConditions):
5.0.0.0) ...Design variables have been updated.
5.0.0.1) ...Load-time positions have been re-established.
WARNING! NAN reached!
Unexpected error in computational kernel
ERROR(OBJ.MCH.KIN3) : S:/M..p/R..]/P..6/A..y/R..y/A..o/A..n/M..n/M..l/Kinematics.any(74) : MotionOptimization.InitialConditions : Kinematic analysis failed in time step 0
I have attached the main model. I suspect that the error may relate to my adapted marker labels and possibly the ‘sRelOpt’?
This error may indicate two things, either you have not enough markers on so a certain dof in the model is not driven either by a marrkers or something else. Secondly it may happen you you have to perefectly identical kinematic constraints in the model.
I took a quick look in the marker file and noticed that some markers intended for the left leg was actually being attached to the right leg.
Thank you for the reply, I believe I have removed any errors from the marker protocol and the kinematics are now running fine. However, I am now having an issue with running the inverse dynamics. I have pasted the error below.
0) InverseDynamics (Operation: Main.Studies.MotionOptimization.InverseDynamics):
0.0) PreOperation (Operation: Main.Studies.MotionOptimization.InverseDynamics.PreOperation):
0.0.0) InitialConditions (Operation: Main.Studies.MotionOptimization.InitialConditions):
0.0.0) ...Design variables have been updated.
0.0.1) ...Load-time positions have been re-established.
0.0.2) ...Kinematic analysis completed. The kinematic constraints have been resolved.
0.0.3) ...Initial conditions are fully updated.
0) Inverse dynamic analysis...
ERROR(OBJ.MCH.MUS4) : S:/M..p/R..]/P..6/A..y/R..y/A..o/A..n/M..n/M..l/Kinematics.any(74) : MotionOptimization.InverseDynamics : Muscle recruitment solver : solver aborted due to singular KKT matrix
Could you please suggest which part of the model I should look at to try to fix this. Thanks again for your input.
Thank you for the suggestion, there are two force plates (Type 4 and type 2). I cannot see any errors in model/environment. I have attached the force plate code below in case there is something I may have missed.