About C3D file

Hi,

When I move GaitFullBody using c3d file, is the text file necessary?

Thank you

Hi,

I am not sure which text file you are referring to?

If you have a C3D file it should be enough to drive the motion and load the model, if it contains both marker info and force plate info.

Best regards
Søren

Thank you for your message,

I am going to move fullbody using c3d file now.

Therefore there are several questions.

①What information may GaitNormal0001-processed-OptimizeParameters.txt or
GaitNormal0001-processed-output-euler-*.txt be based on?

②In addition, how did you make them?

Thank you

Hi,

the text file you are listing is the result of the motion and parameter optimization and generated automatically by the model.

Please refer to our wiki for details on how to run this type of model
http://wiki.anyscript.org/index.php/How_to_setup_your_own_MoCap_driven_Model

Best regards
Søren

Hi,Søren,

Thank you for your reply and guidelines.

I’m trying to move the GaitFullBody changing the c3d file.

I tried to run MotionAndParameterOptimizationModel.
But there seem to be some error as shown below:

ERROR(SCR.SCN18) : C:/U…s/new/a…y/A…1/A…n/m…y/G…)/EnvironmentAutoDetection.any : ‘Fx’ : Unknown Class Template argument.

What could be the reason and a possible solution for this error?

I am using AMS version 5.2 and AMMR version 1.4.1.

The file that has been modified is as attached.
Your help is greatly appreciated.

Hi,

Let’s see the following code inside ‘EnvironmentAutoDetection.any’ file.

ForcePlateType3AutoDetection Plate1 (
PlateName = Plate1,
Folder =Main.ModelSetup.C3DFileData,
Limb1=  .HumanModelRef.Right.Leg.Seg.Foot,
Limb2=  .HumanModelRef.Left.Leg.Seg.Foot,
No=0,
VerticalDirection ="Z",
HeightTolerance=0.07,
VelThreshold=2.2,
Fx=Main.ModelSetup.C3DFileData.[b]Analog.DataFiltered.Fx1[/b],
Fy=Main.ModelSetup.C3DFileData.[b]Analog.DataFiltered.Fy1[/b],
Fz=Main.ModelSetup.C3DFileData.[b]Analog.DataFiltered.Fz1[/b],
Mx=Main.ModelSetup.C3DFileData.[b]Analog.DataFiltered.Mx1[/b],
My=Main.ModelSetup.C3DFileData.[b]Analog.DataFiltered.My1[/b],
Mz=Main.ModelSetup.C3DFileData.[b]Analog.DataFiltered.Mz1[/b],

FootPresent=HumanModelPresent)
={};

In your C3D files, there is no data in the ‘Analog’ section.
So this is the reason of your error.

Check again how to put the force plate data into your C3D file correctly.

Best regards,
Moonki

Hi Moonki,

Thank you for your reply and guidelines.

I checked that you said.

However, I did not understand it.

How is it good?

Best regards

I’m sorry to post many times.

I have some questions about GaitFullBody of AnyBody.

① I am going to move GaitFullBody using c3d file now.

I ran MotionAndParameterOptimizationModel.

 It was successful.

 But the joint angles was not output to txet file.

② I am not able to run the initial condition and so the kinamatic analysis.

the following error is given .

ERROR(OBJ.MCH.KIN3) :   C:/U..s/new/a..y/A..1/A..n/m..y/G..)/GaitFullBody.main.any  :   KinematicStudyForParameterIdentification.InitialConditions  :  Kinematic analysis failed in time step 0

May I know the problem and how to solve it? 

Regards

Hi ??,

1 ) You write that the kinematic analysis was successfull, but that the joint angles was not saved. Unless you have outcommented the saving on the joint angles in the model they will always be saved as the last step of running the "
RunMotionAndParameterOptimizationSequence
" operation.

On the attached images i can not see the text because the resolution is too low.

2)the error says it fails in the first step of the analysis. Please see this section of the wiki http://wiki.anyscript.org/index.php/How_to_setup_your_own_MoCap_driven_Model#Kinematic_analysis_fails

Concerning the previous posting:

Moonki is writing that your C3D file do not contain Analog data. In the environment autodection.any file you get the error in, a number of force plates are created using references to the analog section, which do not exist in your data, so please remove the definition of the force plates.

Best regards
Søren

Hi Søren,

Thank you very much for your help and reply.

I did what you said but I now have a problem with the following error:

ERROR(OBJ.MCH.KIN3) : C:/U…s/new/a…y/A…1/A…n/m…y/G…)/GaitFullBody.main.any : MotionOptimization.InitialConditions : Kinematic analysis failed in time step 0

The joint angles was not saved.

May I know the problem and how to solve it?

The file that has been modified is as attached.
Your help is greatly appreciated.

Best regards

Hi,

Attached please find a modified version of your model.

  1. In the ‘TrialSpecificData.any’ file, I tried to change the first and last frame numbers for simulation.

  2. In the ‘ModelSetup.any’ file, whenever you should use CreateMarker class template, you should be very careful about the settings for OptX, OptY and OptZ.

I would suggest you to play with this model first.

Best regards,
Moonki

Hi Moonki,

Thank you very much for your help and reply.

I have some questions.

  1. How do I determine the setting of the OptX,OptY and OptZ?

  2. I modified the model in the same way.

    I ran MotionAndParameterOptimizationSequence.

    But the joint angles was not output to txet file.

    How did you output to a text file?

    Best regards,

Hi

There is no simple answer to how to know the best setting of OptX, Opty etc.

But there are some basic rules:

[ol]
[li]If the marker is on a well defined point the bone the Opt’s could be off.[/li][li]Looking at the last segment in the chain … hand feet, pelvis(if only lower body) not all markers position can be optimized this would make the problem unbounded. Because the solver would not be able to find a good orientation of the segment, since all orientations may be ok if it just move the markers, which it would be allowed to do.[/li][li]It is a little like above, but the segment lengths can not be optimized if there are no fixed markers on the segments, the problem becomes unbounded for the solver.[/li][/ol]If the joint angle was not exported it means that something went wrong in the optimization and thus it did not do the last step which is to export the angles.

What is the error message?

Best regards
Søren

Hi Søren,

Thank you very much for your help and reply.

This error appears.

Best regards

Hi

From the error message it looks like the analysis failed in the first timestep.

One way of resolving this could possible be to alter the initial positions of the human model.

This can be done in the InitialPosOfBody section of the TrialSpecific.any file.

For more details please see this wiki page
http://wiki.anyscript.org/index.php/How_to_setup_your_own_MoCap_driven_Model

Best regards
Søren

Hi Søren,

Thank you very much for your help and reply.

I saw wiki page.

I revised a model once again from a beginning.

But same error was given.

What is the cause?

Best regards

Hi Sawamura,

If you want to get our help for debugging your model, please upload your model in the debug model section:
http://forum.anyscript.org/forumdisplay.php?f=21

Best regards,
Moonki

Hi Moonki,

Thank you very much for your help and reply.

I uploaded my model in the debug model section.

I have a question for you.

You could output to a text file before.

I fixed the same place.

But I could not.

What is the cause?

Best regards