Jump Landing Model

Hello,

I am working on a jump landing model which I’ve created by modifying the GaitUniMiamiTDRightLeg model. I am having a little difficulty locating the markers so that I can move them and match them up with my motion capture data markers. I was hoping someone in the AnyScript community could help me out. Also I am having a bit of trouble figuring out how to run the inverse dynamics analysis on this model. After changing and modifying the program I have had success in loading it. I just am not sure the markers are lined up properly as I am having trouble seeing them. I appreciate the help. Thank you.

Best Regards,

Preet Sabharwal

Hi Preet

I have taken a look at your model and found a few things:

To see the markers you need to go the file DrawMarker.any and change the scaling of the marker to something like this

AnyDrawNode DrawMarkerNode={
ScaleXYZ=0.015*{1,1,1};
RGB=…RGB;
};

To drive this model with the markers requires you to follow the procedure written in the top of the main file, it is not easy the first time, but currently this is the only way. This procedure is going to much easier with the next release of AMS.

It is important that the markers are located at approximately the right locations on the segments. It is also important that you alter the initial position so that it matches the location of the markers in the first time frame.

So for the moment you have to generate an output file for the external application gaitapplication2, then you have to run this external application to optimize the motion. When this is done you need to load the motion into the OptStudy (currently out-commented in your model) and in this study you can run the inverse analysis.

Best regards
Søren

Hello Søren,

Thank you. I appreciate your help and I will try these suggestions you have given me. I will keep the post updated on whether I have any success with this model or not.

Best Regards,

Preet Sabharwal

Hello,

I am now able to see the markers and adjust their locations on the skeleton of the model. But I am still having trouble seeing the motion capture data markers. I want to go into the mannequin file and adjust the initial position of the model to fit the motion capture data but I cannot seem to find where I can adjust the settings of the markers in order to see the motion capture markers which I have to line up the body markers with. Any help or suggestions on this issue would be very much appreciated. Thank you.

Best Regards,

Preet Sabharwal

Hi Preet,

Those settings can be found in the file MarkerMover.any. There are two things to adjust in your model:

  • The markers are very small, try to draw them bigger like this:
    AnySeg Seg={
    Mass=0;
    Jii={0.0,0.0,0.0};
    AnyRefNode node={
    sRel={0,0,0};
    AnyDrawNode drw={ScaleXYZ=3*{0.005,0.005,0.005};};
    };
    };

  • The position data in the text files is in milimeters. It has to be converted in meters to fit the model. It can be done directly in the driver for example:
    AnyKinEqInterPolDriver LinDrv={
    AnyKinLinear &ref1= .Lin;
    #include “time.any”
    Data={.FilteredX,.FilteredY,.FilteredZ}/1000;
    Type=Bspline;
    BsplineOrder = 4;
    };

Best regards, Sylvain.

Hello Sylvain,

Thank you for the advise and reply. I added these suggestions but for some reason only the motion capture marker for the 5th metatarsal is showing. I have attached the new file and it’s not clear to me why this may be happening. Can you take a look and let me know what you think. Thanks.

Best Regards,

Preet Sabharwal

Hi Preet,

You miss the second modification in the previous list, changing the unit from milimeters to meters. The other markers are actually in the model view but far away (hundreds of meters!).

In the MarkerMover.any file do the following modification:

AnyKinEqInterPolDriver LinDrv={
AnyKinLinear &ref1= .Lin;
#include “time.any”
Data={.FilteredX,.FilteredY,.FilteredZ}/1000;
Type=Bspline;
BsplineOrder = 4;
};

Best regards, Sylvain.

Hello Sylvain,

In the model I posted earlier I had forgotten but when I placed that last modification in I still could not see the other markers. With this modification I am still only seeing the 5th metatarsal marker.

Best Regards,

Preet Sabharwal

Hi Preet,

Then it is most probably because you didn’t run any analysis yet. When you load the model all the markers are pilled up together at the origin of the global reference frame, so it looks like there is only one. You have to set the InitialConditions or run the Kinamatics to see the markers at their right place.

Best regards, Sylvain.

[i]Thanks Sylvain,

This definitely helped. I greatly appreciate it. I had one other question as well. I am modifying the position of the mannequin to fit the data correctly. But when I try to change the segment lengths such as the shank length nothing changes upon loading the model. If I change the length of the shank from 0.35 to 0.25 and then load the model and set initial conditions I find no change in length of the shank. If you could take a look and let me know what you think that would be great. I’m not sure if something is locked or missing on my program. Thank you.[/i]

The post above was my previous post. I have tried different ways to make the markers line up through the mannequin file. I am still not able to change the segment lengths. If anyone in the anybody community can take a look and let me know if they can find a problem that is wrong and help we fix it I would greatly appreciate it. Then I can change the segment lengths and lineup the markers to continue running this program.

Best Regards,

Preet Sabharwal

Hi Preet,

This is because you are using the scaling function ScalingStandard in your model. This function gives a fixed size to the model corresponding to the 50th percentile european male. The AnyMan file has no effect when using this law. To modify the segments size you need to use one of the others scaling law instead like ScalingLengthMassFat for example.
Please refer to the scaling tutorial on our web site for detailed explanations on the different scaling laws.

Best regards, Sylvain.

Hello Sylvain,

Thank you for your reply. I made the mistake of not scrolling down all the way in the forum and clicking the next page. I hadn’t seen your reply. I will make the change and hopefully I will be able to complete this model and run it. Thank you.

Best Regards,

Preet Sabharwal

Hi Sylvain,

I have made the change to use the LengthMassFat scaling law. I get an error for fat percentage in the lengthmassfat file. I have attached the model can you please take a look and let me know what I may possibly do to fix this issue. Thanks.

Best Regards,

Preet Sabharwal

Hi Preet,

I can see you modified the structure of the AnyMan file, this is the cause of the error. The variables BMI and FatPercent must be placed outside the AnthroData folder. You will have a similar problem with the TalusLength variable as i can see.

Please refer to the model of the AnyMan file placed in Body/AAUHuman/Scaling/AnyFamily. You can change freely the numbers but you should keep the names and folder structure as it is in order to use it efficiently.

Best regards, Sylvain.

Hi Sylvain,

Thank you. I made the changes and now when running gait application 2 I have received an error and I was wondering if I may get some advise as to what can be done to fix this.

“Exit due to error while creating model: A marker has been defined on an unknown segement”

I am uploading my program. I’m guessing it has to do with my marker positions and how I adjusted the mannequin file. But I would like your input on what particularly may be the error in my markers location on segments.

Best Regards,

Preet Sabharwal

Hi Preet,

It looks like the problem comes from the numbering of the segments. In the MarkerTopology file where you create the markers on the segments there is a number asigned to each segment. Those numbers are used by the GaitApplication2. The fact is that this numbering is different for the legTD and the old leg.
You are using the legTD in the model but you are using the numbering of the old leg. So for example you asigned the number 6 to the right foot, this is the old leg value. The right foot of the TD leg has the number 4.

So please look in the MarkerTopology file of the model GaitUniMiamiTDRightLeg to get the correct numbering.

Best regards, Sylvain.

Hi Sylvain,

I tried the suggestion you gave and I changed the marker topology file to have the correct numbers for each segment.

RMET= seg 4
Right Calcaneous= seg 4
RASIS and LASIS= seg 0
Right Femoral Condyle= Seg 1
Medial and Lateral malleolus= Seg 2

Those were the values for segments that I gave in the marker topology but I still received the same error.

Best Regards,
Preet Sabharwal

Hi Preet,
the numbering should be:
//Pelvis SegNr =0
//Left thigh SegNr =1
//Left shank SegNr =2
//Left Talus SegNr = 3
//Left foot SegNr =4
//Right thigh SegNr =5
//Right shank SegNr =6
//Right shank SegNr = 7
//Right foot SegNr =8

Best regards,
Sebastian

Hello Sebastian,

Thank you for your reply. I have tried both Sylvain as well as your suggestions. I think the segment number system from 1-8 is when there is a left and right leg. The model I am manipulating is the GaitUniMiamiTDRightLeg model in which there is just the right leg and the numbering system is 0-pelvis, 1-thigh,2-shank, 3-talus, 4-foot. I have tried both numbering systems. Yours as well as the system described in the Markertopology file. I still receive the same error:

“Exit due to error while creating model: A marker has been defined on an unknown segement”

If you could take a look at my model and let me know if there is anything else that could be the issue I would greatly appreciate it because I am not sure what I can do next to fix the issue I am having when running gaitapplication 2. Thank you.

Best Regards,

Preet Sabharwal

Hey Preet.

Without having looked at your model, I would guess that it is because you have not specified the correct type of model in the StudyGait.txt input file to GaitApplication2. Please have a look in the manual for the details, but the options are:

MODELTYPE GAITALLUNKNOWN (This will give you the “old” the lower extremity model)
MODELTYPE GAITTWOREVANKLE (This will give you the TLEM model with both the left and right leg)
MODELTYPE RIGHTLEGTWOREVANKLE (This will give you the TLEM model with only the pelvis and right leg).

I hope this helps, otherwise please write again.

Best regards
Michael Skipper Andersen
The AnyBody Research Project.