Hi,
I loaded the C3D file to the gait model, and the file is captured by vicon. It can be seen from the picture that there is something wrong with the direction. How to modify the code to solve the problem, please?
Addationally, I removed the forceplate file in the model, as it dosen’t exist in the c3d files. Could the inverse dynamics calculation be run in this case?
Looking forward to your reply.Thank you very much.
It is hard to say what the problem is exactly without looking into it. But on the screenshot I see that there might be an error in your ankle markers - they seem to be flipped. Unfortunately I cannot suggest more without having a better picture or the model itself.
Sometimes you could try to exclude some of the markers to see whether they cause problem or not.
Thank you for your advice. Now the inverse dynamics analisis is achieved! It’s pretty a good idea to set the markers on precise location and delete a few unimportant markers.
In addition, could you give a brief explanation about how dose the "AnyOptKinStudy " run when it’s used in the MoCapModel, and what dose “ParameterOptimization.ConvergenceTol=1e-2” and " Kinematics.MaxIteration " refer to?
Kinematics.PosAnalysisOnlyOnOff=On; //only run the position analysis
InitialConditions.KinematicTol=1e-3;
Kinematics.KinematicTol=1e-3;
InitialConditions.SolverType = KinSolOverDeterminate;
Kinematics.SolverType = KinSolOverDeterminate;
InitialConditions.MaxIteration = 20000;
Kinematics.MaxIteration = 20000;
};
// Second Sub-Study to optimize the Parameters**// Usually no need to make changes
AnyOptKinStudy ParameterIdentification = {
AnyFolder &StudyRef = .KinematicStudyForParameterIdentification;
ParameterOptimization.ConvergenceTol=1e-2;
Analysis = {
AnyOperation &ref = .StudyRef.Kinematics;
};
};
ParameterOptimization.ConvergenceTol as it is probably clear from the name is a tolerance factor, which specifies when parameter optimization is converged. You could think of it as a change of the objective function value between two consequent optimization iterations.
Kinematics.MaxIteration - Is a maximum allowed number of iterations when solving kinematic analysis.
This information is also available in the ref. manual, that can be found by pressing F1 on the object of interest
I’ve found the description of AnyKinStudy in the ref.manual.It’s helpful!
I just wondering wether the users of AnyBody can see the algorithms and the nonlinear equations which are used during the calculation, or they’ve been packaged and are invisible. If they are invisible, on what basis the users to set the certain parameters, for example, whether the "Kinematics.MaxIteration = 20000 " or “=30000”, “Kinematics.KinematicTol=1e-3” or “=1e-2”?
Hi Pavel,
I meet another problem and hope you can help me.
In my C3D data, only data captured by vicon are included, not force plat data.And the external forces impacted on the hip are recorded by another device, saved as notepad++ files.
My question is that, can we import the data in Text file format into AnyBody? and how to do it? By the way, I just want AnyBody to use certain data in the files, not all of them.
I’m thinking about changing the input of the ForcePlate( lineated in the following) to read the data from NotePad++ files. Do you think it is realizable?
Kinematic tolerance is an allowed kinematic error in other words. If you are ok with markers to be deviating by 1cm - then 1e-2 is ok. Please keep in mind that this tolerance can also be used for angular measures, e.g. 1e-2 radians. You don’t really need to know what kind of solvers are being used and what is happening inside.
MaxIteration - can somehow be dependent on the convergence rate of the solver, however, normally these large numbers should be sufficient for any problem.
For more information please read publication on our website, for example here a brief explanation of kinematic solver is given:
I found that load the force by AnyForce3D is a great idea to achive my goal!
We can set the 3Dforce by filling in the big parantheses of F = {0.0, 0.0, 0.0};.
While, as my experiment data of a lot of subjects are saved in the form of NotePad++ files, seen the attachment.
I hope that my AnyBody model could read the force of Rest0, Fx=12.38N, Fz=-194.17N into AnyForce 3D function, instead of type into the data one by one.
Is there a solution to read the certain data of a NotePad++ file into AnyBody? Could you give me some advice to achive it?
Eagerly look forward to your reply. Thank you so much!!!
First of all, i don’t see the attachment so can’t actually see the format of this data.
But if you mean that you have tables in that Notepad++ files - you can probably read them in. AnyFunInterpol can use a CSV file to construct Time and Data arrays with your experimental readings to construct an interpolation function that you can further connect with your AnyForce3D object.