Hi,
I am currently having issues running my own .c3d on the mo cap model. I have followed all of the instructions in the tutorials and re-assigned all marker labels within my .c3d file however it still will not import onto the model. This is the main error i receive, the .c3d file is in the specified place it cannot see.
Evaluating model…
ERROR(OBJ.FILE1) : C:/U…s/D…i/D…p/A…o/A…n/E…s/M…l/M…l/JointsAndDriversOptimized.any(16) : JntDriverTrunk.FileName : Problem with file : C:\Users\Darius Nahavandi\Desktop\AMMR.v1.6.2-MyDemo\Application\Examples\MoCapModel\Input\FullBody-Testnew-euler-trunk.txt : The data file does not exist.
Model loading skipped
MoCap model works in 2 steps. First, you optimize your model dimensions and kinematics to fit the markers using following switches.
#ifndef MotionAndParameterOptimizationModel
#define MotionAndParameterOptimizationModel [b]1[/b]
#endif
//Set this to 1 if you want to run the inverse dynamic analysis
#ifndef InverseDynamicModel
#define InverseDynamicModel [b]0[/b]
#endif
And secondly, to solve for muscle and joint reaction forces you need to invert these configuration parameters, and reload the model (once kinematic analysis has been successfully completed):
#ifndef MotionAndParameterOptimizationModel
#define MotionAndParameterOptimizationModel [b]0[/b]
#endif
//Set this to 1 if you want to run the inverse dynamic analysis
#ifndef InverseDynamicModel
#define InverseDynamicModel [b]1[/b]
#endif
So in order to use your own C3D file - please start with the first configuration.
What you see are not muscles, but error vectors between virtual and real (C3D) markers. Now it is actually your task to make kinematics work. In the kinematic study muscles are not included to find model dimensions and fitting kinematics. They are enabled in the inverse dynamics study. If you are facing a kinematic error - please refer to the tutorials, which explain some of the kinematic problems, or search on the forum for similar errors.
You could start by providing a better initial guess. Please let us also know what version of AMMR and AMS you are using so we could provide correct recommendations.
Please visit our Wiki page, where you could find a lot of details on how to set your MoCap model up Wiki on MoCap models
Hi Pavel,
Most of the issues have now been resolved however i have noticed the reason i cannot run the inverse dynamics now is because the output files are not being created (except for the {FullBody-Testnew-OptimizedParameters} file. I have tried even using the example .c3d that is within the folder itself but still receive this error.
ERROR(OBJ.FILE1) : C:/U…s/D…i/D…p/A…o/A…n/E…s/M…l/M…l/JointsAndDriversOptimized.any(16) : JntDriverTrunk.FileName : Problem with file : C:\Users\Darius Nahavandi\Desktop\AMMR.v1.6.2-MyDemo\Application\Examples\MoCapModel\Input\FullBody-GaitNormal_3-euler-trunk.txt : The data file does not exist.
Model loading skipped
I have noticed this is because the files it is trying to locate are not there.
However for the original gate file they are.
They are called (FullBody-GaitNormal_1-euler-leftarm) etc.
Is there somewhere i need to direct an output from or enable this process?
I could think of 3 reasons that they are not being created:
You are trying to write in a directory that requires administrator rights for writing/modifying files. That would prevent AMS from writing output files.
The kinematic analysis from the first phase has not finished successfully - the output files will not be created.
The first phase (using switches that i described) was not used at all - but i guess this is an unlikely scenario.
Could you check these points? You should definitely have our native C3D files working.
I have made sure i have done all the points correctly however there is still no output files being created even when using the example .c3d data.
Only the original files remain in the folder.
I do not know where to go from here, i have followed all the steps and it is not working
It is really hard to help the file creation problem from a sentence “it does not work” Could you possibly show us pieces of code you use to configure the model?
About BVH - please have a look at the relevant section on the Wiki page: BVH setup on Wiki
Additionally, you can try finding this topic in Google for previous discussions on BVH (our search facility is not working great):
I completely uninstalled and wiped all anybody files and then re-installed, then downloaded the AMMR Example folder (To make sure any files handt been changed)
I have run the Mocap model with the example data:
GaitNormal_1
I run the both the MotionAndParameterOptimizationModel and also InverseDynamicModel, Both work, all analysis works and no issues.
I then change
AnyString NameOfFile =“GaitNormal_1”; //Write the name of the file here
to
AnyString NameOfFile =“GaitFast_1”; //Write the name of the file here
Run the
MotionAndParameterOptimizationModel and it is successful
But then when i run InverseDynamicModel i recive this error
Loading Main : “C:\Users\Mo\Desktop\AnyBody.6.0\AMMR\Application\Examples\MoCapModel\MoCap_LowerBody.main.any”
Scanning…
Parsing…
Constructing model tree…
Linking identifiers…
Evaluating constants…
Configuring model…
Evaluating model…
ERROR(OBJ.FILE1) : C:/U…s/Mo/D…p/A…0/AMMR/A…n/E…s/M…l/M…l/JointsAndDriversOptimized.any(16) : JntDriverTrunk.FileName : Problem with file : C:\Users\Mo\Desktop\AnyBody.6.0\AMMR\Application\Examples\MoCapModel\Input\LowerBody-GaitFast_1-euler-trunk.txt : The data file does not exist.
Model loading skipped
Again i have notices that no new files are being created in the input folder, i am assuming new files similar to LowerBody-GaitNormal_1-euler-leftlegtd should be created.
Are you able to run the same procedure and see if it works for you?
Thanks, that helps. Yes, I run this trial without any problems, tried different repositories, and tried copying the one installed with AMS 6.0. Where did you download your repository from?
Could you create files yourself in the Input folder of the MoCap model?
It sounds suspicious. Could you let us know version of the AMS, AMMR, Windows you are using?
I am using: AnyBody version : 6. 0. 6. 4504 (64-bit version)
I downloaded the model directly from the Anybody assistant
"The AnyBody AnyScript Demo Repository
This is a demo version of the AnyBody Managed Model Repository (AMMR) (see www.anyscript.org for the official version).
To re-install/update the installed demo files, follow this link."
I download it directly from the above link, should i be downloading from somewhere else?
I am using Windows 7 Professional
Yes can create files in the input folder
I have tried on multiple computers and it will not create new files, does yours actually create the new files within the input folder or are they just the original examples?
AnyString NameOfFile ="[b]GaitFast_1[/b]"; //Write the name of the file here
I reload/load the model by pressing F7 or hitting a relevant button (important)
In the main file i change switches to look like (important):
//Set this to 1 if you want to run the motion and Parameter Optimization identification
//**************************************************
#ifndef MotionAndParameterOptimizationModel
#define MotionAndParameterOptimizationModel [b]1[/b]
#endif
//Set this to 1 if you want to run the inverse dynamic analysis
#ifndef InverseDynamicModel
#define InverseDynamicModel [b]0[/b]
#endif
It writes out following files into the Input folder: