I have a requirement where I need to load a model in already calibrated position. By this I mean I have the data related to all the segments in the model in the calibrated pose. I want to now load my model with this data. Is there any possible way of doing so in Anybody? I am using AMMRV1.0 repository. I even checked the Seg file in the repository, but there were complex relationships defining positioning of different segments. So, changing the values for each segment manually seems daunting.
Hello Priyanshu,
if I understood correctly, you want to run a model without calbration of the muscles.
This could be done e.g. like this:
Do an initial analysis to determine the tendon length and read it out.
For this you have to include an export function in the study folder like this:
AnyOutputFile Calibrationfiles =
{
FileName = “Calibrations”;
Search = “Main.HumanModel.BodyModel..Leg.MusPar..Lt0”;
};
This would write all tendon lengths for the leg in the calibrations file.
Now you have to modfiy this file just a little (add ; in each line) and include the file with #include"newfile.any" in the study folder. This reads in the calibrated muscle tendon lengths. In order to avoid double occurence of muscle tendon lengths definition you have to outcomment the Lt0 definition in the MusPar files.
Best regards,
Sebastian
Yes. You can read out any values you like (so e.g. segment positions) with an AnyOutPutFile. When you make a new analysis you read in these values to drive your segment to the positions wanted.
Please have a look at the wiki page (under Use input file) on how to use txt files to drive a model (in case you have no experience with this).
Sebastian
I can drive the segments defined by me in the model. But when it comes to driving all the segments in the human model present in the repository it becomes tedious. Is there a way to read the human model segments’ position vectors using file. I checked the repository, there is file “InitialPositions.any” in arm and leg folder but only Axes0 for the segments is defined in the file. The r0 vector is defined in the “Seg.any” file. However, the definition for r0 vector is in terms of complicated relationships among different segments. Is there a possible way to read these position vector from an input file.
Hi Priyanshu,
there are several possibilites. An easy way is to export joint angles and drive the model similiar to the Mannequin file. So you dont have to mess with r0 or similar.
Best regards,
Sebastian