I had a quick look at your model and saw some things you could try to change to make it run.
[ol]
[li]You have all segments in the model, but only markers on head, right arm and trunk. I would suggest to switch left leg arm and both legs. At the moment they are not driven which is probably one reason why the kinematic fails. This can be done in the BodyPartsSetup.any file.[/li][li]There is a lot of arm movement in the motion. Therefor, I would switch the shoulder rhythm on. This quite often helps to solve kinematic problems. The switch is also in the BodyPartsSetup.any file.[/li][li]It looks as you have a lot of trunk rotation in the motion. You could try to change the initial position in the mannequin.any and PatientSpecific.any file to help the InitialCondition solver.[/li][/ol]
I have not tried to figure out the right initial positions, but I hope this helps you make the model run.
I can’t seem to get the ShoulderRhytm to work. How do i figure out the OutDim?
Right now, the kinematics is running, but the optimization isn’t working. There is a problem in the hand which is facing the wrong. Any suggestions to how i force it the other way?
to set the OutDim, you can count the dimensions of the used measures in the measure organizer. Quite often, you can simply look at the Pos vector to see the dimension.
Could you try to fit the initial conditions better to avoid switching the orientation of the hand?
The Pos vector is set to 0. When i count the dimensions and define the OutDim, it says
Number of elements in type specification must match number of elements in force vector (num. elem = 7)
The error takes me to the Reaction.Type = {Off}. I don’t see why this should be changed, since there apparently is a mismatch in the number of elements between two vectors.
the problem did not show up with the repository I looked at before. In the 1.5 AMMR, you can set the OutDim at the places indicated in the warning to 1, than the model should load without warnings.
About the wrist problem: Have you tried to change the joint type between hand and racket?
I’ve come a great deal further with the tennis serve, but i can’t get the inverse dynamic to run.
It doesn’t seem to know, how to balance the forces at the hand racket joint. I can see that a get a really large activity, but i don’t know where i comes from and how to deal with it.
Any advice?
I included the muscles in the inverse study and tried to run it. It looks like the right hand/wrist causes some trouble:
muscle activity of:
Extensor_Indicies_Activity
is increasing at step 226, and after that it fails in 228.
To me it looks like the markers in the right hand and wrist are not ok there. Did you try other changes?