AnyGait marker protocol

Hi,
I am using a different marker protocol from the 3 defined options in the model. Can I just add a 4th option in the file Model\OptLegModel\KinOptModel\Marker.any which corresponds to the markers that I am using?

Also, the definition of the force plates specifies the vertical direction. Is this asking for the vertical direction of the lab coordinate system or for the individual force plate vertical directions. The lab vertical (upward) is +z but the force plates -z is vertical (upward).

Thanks,
Brooke

I have tried making changes to the AnyGait model similar to the changes I made in the past with the gait lower extremity model. I still cannot get the model to run. I have attached the files that I am trying to use. Can anyone suggest ideas to help?

Brooke,

I will have a look at your model.

**

Hey Brooke,

There is one issue with the static trial.

Try to save the setup with a limited range in the C3D frames. If you only use frames 250-340 it will load, run the stick figure (looks little strange though) and then you can load the processing step. Here you see the problem in the model.
The subject in the static trial looks into the opposite way compared to the dynamic trial. In AnyGait, you don’t need to set the initial position, because AnyGait will use the static trial to calculate the initial position. In all trials I have processed so far that worked fine. In your case the subject needs to be turned around and there the right leg gets messed up.
Solution 1: Easy from a modeling aspect would be to get a static trial, where the subject points into the same direction in the static and the dynamic trial.
Solution 2: I need to do several changes to the model.

Do you have a pair of static and dynamic trial with a subject pointing into the right direction? So that we are sure that it runs?
*

Hey Amir,
Thanks for looking at the files. I have attached new static and gait trials where the person is facing the same direction. However, we have people walk across the platform in both directions, so it would be nice to be able to use all of the gait trials. Let me know if you need anything else. We are also using many more markers which are not in the standard AnyGait model. Can those also be added to the model?

Thanks!
Brooke

Hey Brooke,

with the new C3D files AnyGait runs smooth. I will try to come up with another solution in the next days, so all trials can be used.
**

Hey Brooke,

I changed 4 files and it is running now. I will need to check some more things, but please exchange

in the folder:
…\AnyGait\AnyGaitSourceCode\Model\OptLegModel\KinOptModel

the files:

  • ClassTemplates.any and
  • StickFigure.any

plus change in the folder:
…\AnyGait\AnyGaitSourceCode\Model\OptLegModel\ProjectModel

the files:

  • InverseDynamics.Main.any and
  • Kinematics.Main.any

I hope that helps. Please tell me if it doesn’t run or other errors appear.


Hey Amir,

I removed the 4 files and added the revised ones that you sent. I am getting the following error message. I have attached a zip of exactly what I’m using so you can try it. I’m trying to use data from the Normal29 c3d files.

Loading Main : “C:\Users\Brooke Sanford\Desktop\AMMRV1.5\AMMR.v1.5-MyDemo\Application\AnyGait2\AnyGaitSourceCode\Model\OptLegModel\ProjectModel\KinematicModel.main.any”
Scanning…
Parsing…
Constructing model tree…
ERROR(SCR.PRS9) : C:/U…s/B…d/D…p/A…5/A…o/A…n/A…2/A…e/M…l/O…l/K…l/StickFigure.any : Defined At : C:/U…s/B…d/D…p/A…5/A…o/A…n/A…2/A…e/M…l/O…l/K…l/Marker.any : ‘RMEDFEMCON’ : Unresolved object
Model loading skipped

Brooke,

sorry, I just realized I changed a couple more files. I took another Marker for the dynamic trial and I corrected some typos. Here is the full Model:

Amir,

Now when I try to run I get an error when loading the model in the preprocessing step. The error is:

Loading Main : “C:\Users\Brooke Sanford\Desktop\AMMRV1.5\AMMR.v1.5-MyDemo\Application\AnyGait3\AnyGaitSourceCode\Model\OptLegModel\ProjectModel\KinematicModel.main.any”
Scanning…
Parsing…
Constructing model tree…
ERROR(OBJ.FILE1) : C:/U…s/B…d/D…p/A…5/A…o/A…n/A…3/A…e/M…l/O…l/B…l/ModelSetup.any : ModelSetup.DynamicDataSet.FileName : Problem with file : C:\Users\Brooke Sanford\Desktop\AMMRV1.5\AMMR.v1.5-MyDemo\Application\AnyGait3\Projects\Test2\dyn.c3d : Failed to open the specified c3d file
Model loading skipped

I noticed that when I am trying to save the values height, weight, and the static and dynamic files I am getting a security warning that I was not receiving last week. I have attached a screen shot of that warning.

If I name the project the same as I was naming it last week, it finds the dyn.c3d and stat.c3d files that were previously created but the model still will not get through the full kinematic analysis. It failed in time step 211. I think a marker may be dropping out. So I created new dynamic and static c3d files but can’t load them due to the error that I copied above.

Thanks,
Brooke

Brooke

Brooke,

Sorry for this trouble [FONT=Wingdings]L[/FONT]

  1. For explanation, when you start a new project, you create a new folder in the projects folder. If this “project” already exists, you go into that folder and use the existing setup, C3D files or overwrite them. When you type in weight, mass and specify the C3D they will be transferred in the folder of your project using a batch file (CopyC3D.bat). It looks like this batch file makes security problems. You could try and exchange that CopyC3D.bat with the old one that didn’t call this security warning.
    You can find it at: AnyGait2\AnyGaitSourceCode\Model\TemplateFiles

  2. It looks also like that transfer didn’t work out, because you received the error message that the C3D file couldn’t be found.

  3. I’m also having trouble running the full C3D file. When I run normal28 from frame 250 it works…

I look into this now

I just tried switching out the CopyC3D.bat with the older version but it still is not working. I’m having the same problem.

I’m trying to run this on Windows 7. Are you using the same OS?

Brooke,

yes I’m using Windows 7 as well. What happens if you try to load the old model, the one where this security warning did not appear?

I get the following error:

Loading Main : “C:\Users\Brooke Sanford\Desktop\AMMRV1.5\AMMR.v1.5-MyDemo\Application\AnyGait2\AnyGaitSourceCode\Model\OptLegModel\ProjectModel\KinematicModel.main.any”
Scanning…
Parsing…
Constructing model tree…
ERROR(SCR.PRS9) : C:/U…s/B…d/D…p/A…5/A…o/A…n/A…2/A…e/M…l/O…l/K…l/StickFigure.any : Defined At : C:/U…s/B…d/D…p/A…5/A…o/A…n/A…2/A…e/M…l/O…l/K…l/Marker.any : ‘RMEDFEMCON’ : Unresolved object
Model loading skipped

Ok, another thing, with the latest AnyGait, if you accept the security warning, will it copy the files?

No. When I say okay to the warning, the files still do not get copied.

Amir,

I have the model running now. I am curious about the results. The hip and knee reaction forces are all around 5 to 6 times body weight for normal gait. Is this comparable to what you have seen?

that seems high, but from other users I heard that 5x BW can appear…

Amir,

How can I change the muscle recruitment from polynomial to linear in the model? I have run it using orders 2-5 and would also like to try linear.

Also, Is it possible to add the rest of the markers that are not being used? We have clusters of 4 markers on each thigh and shank but are only using 1 of the 4 markers from each cluster.

Thanks,
Brooke