Debugging - correctly linking force vectors to segment

Soren,

Thank you for your help with the energy calculation. Everything appears to be working correctly for us.

However, I am having a little trouble figuring out what is going wrong with a different script so maybe you can help me get started. This is in regard to a class that you helped create for ‘making’ Tekscan pads to apply forces to the segments in our model. I did a little work to create all the pads and fixed a bug for the initial position and those are correct but when I run initial conditions (to match markers) the artificial segments for the centers of pressure (COP) are ‘left’ behind and no longer correctly link. (the attached picture will make this clear hopefully) It think there is a driver that connects the force with the pad but apparently not. It also occurred to me that a joint may be required to join the two but that also didn’t work.

Any thoughts on how to fix this?

Feel free to let me know if you need more information to make the problem clear.

Thanks again,

Jeremy

Hi Jeremy,

I have looked at the class, the prismatic joint has to go out again. There are drivers for all dof already, so adding this joint will create problems.

To me it sounds as the problem could be that location where the class is being applied is not really included in the study you are running this could explain this behaviour. So note that it is possible to have scripts in the model that are not being used by a study, these scripts will not get any updates, while you are running the study, and it sounds as this is what happend.
To avoid it the script needs to be included in the study or there needs to be a reference to the script.

One more thing; if you did not get any kinematic error on adding the joint it also indicates that this piece of the script where not used by the study.

Hope it helps

Best regards
Søren

Soren,

I think I know what you are saying but I do not know how to actually do this. I simply included the class again (as shown below) within the study section but I get an error that it was already defined:

AnyFolder Studies ={

  #include "../../../Body/AAUHuman/ToolBox/Mocap/CreateTekPadForceClass.any"    

#if  MotionAndParameterOptimizationModel

Here is the actual error:
" ‘CreateTekPad’ : Identifier already defined at : C:\Users\carrle.j\Desk…"

This issue is frustrating because I spent quite a bit of time trying to ‘fix’ the class script, not realizing it could be something else. So thank you for your help and have a good weekend!

Jeremy

Hi Jeremy,

Just a quick answer.

It is not the class which needs to be in the study, it is the script where you make use of the class. So you need to include or make a reference to the script that is equivalent to the environment.any file for a gait model where the forceplate classes are usually defined.

Hope it helps, have a nice weekend

Best regards
Søren