I am using AnyBody version 5.0 with AMMR 1.3. I have downloaded the GaitFullBody model and modified it in the following manner.
First, I removed lower body markers (Pelvis and lower) and markers on left side of the upper body and added and defined several markers (Medial Elbow, Left Back, Finger/Thumb). Since I removed the Pelvis, I had to specify InitialPositions for the pelvis based on constant value instead of marker data, and found that {0,1,0} is very close to lining up the experimental markers and the model markers.
At this point, though, the system had too few constraints for the unknowns, so I started adding in drivers for the joints that were no longer going to be controlled by marker data in the ExtraDrivers.any file. These were added for the ankle, foot, knee, hip, pelvis, left shoulder, left elbow, left wrist in the ExtraDrivers.any file, and the SCDriverRight code was commented out. I am no longer getting errors about constraints and unknowns.
At that point I was getting the error “Newton Relaxation too small” when I run the “RunMotionandParameterOptimizationSequence” operation, followed by a long list of constraints and their errors. I am aware that I can lower the Kinematic Tolerance, and I did temporarily from 0.001 to 0.1, and there are still several that are outside of those more relaxed tolerances. For instance…
“Constraint no. #3 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Left.ShoulderArm.Jnt.ScapulaAIThoraxNodeReaction.ContactSegDriver’ above error tolerance 0.100000, error = 1.904010.”
“Constraint no. #1 in ‘Main.Studies.KinematicStudyForParameterIdentification.HumanModel.BodyModel.Right.ShoulderArm.Mus.ArtificialRake.LinCombDrv’ above error tolerance 0.100000, error = 0.200583.”
And, even one of the constraints I specified in ExtraDrivers.any:
“Constraint no. #1 in ‘Main.Studies.KinematicStudyForParameterIdentification.ModelEnvironmentConnection.Drivers.PelvisPostureDrv’ above error tolerance 0.100000, error = 0.526888.”
After the list of errors, it says that Kinematic Analysis failed in time step 0.
My final thought was maybe I’ve added too many constraints to the system, so I commented out my drivers for PelvisThorax motion (ext, lat bend, rot). Once I did that, it progressed further to the “Evaluation KKT conditions (Operation: Main.Studies.KinematicStudyForParameterIdentification.Kinematics)” and gave this error:
WARNING! NAN reached!
Unexpected error in computational kernel
ERROR(OBJ.DES2) : X:/D…n/A…r/A…3/A…n/E…s/G…y/GaitFullBody.main.any : ParameterIdentification.ParameterOptimization : Optimization failed : Failed to solve position analysis
Can anyone provide some guidance on what I may be missing, or what I’m doing wrong?