Forums Anyscript.org  

Go Back   Forums Anyscript.org > Professional Forum > Debug model

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 11-11-2014, 10:47 PM
vikaskaul vikaskaul is offline
Member
 
Join Date: Aug 2014
Posts: 39
Default

Quote:
How big a difference do you see?
From being indiscernible (model markers overlapping experimental markers) in the first part to being clearly separated by, at most, a few centimeters in the second part.
Reply With Quote
  #12  
Old 11-12-2014, 01:04 PM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 897
Default

Hi Vikas,

I have double checked the standard model, and it has revealed a small error in the visualization of the marker trajectory ball for the inverse model, so the blue sphere. The error is only visual and results from the model is not changed.

To correct it please localize the CreateMarkerClass being used to create the marker.

Then replace the "AnyDrawVector MarkerName" object in this class with this code:

Code:
AnyDrawSphere MarkerName={
Visible=On;
Opacity=0.5;
Position={Main.ModelSetup.C3DFileData.Points.Markers.MarkerName.PosInterpol(Main.Studies.InverseDynamicStudy.t)}[0];

 GlobalCoord=On;
ScaleXYZ={1,1,1}*0.01;
RGB={0,0,1};
AnyRefFrame&Globalref=Main.Studies.InverseDynamicStudy.EnvironmentModel.GlobalRef;
};
If you still see errors please try to use more timeframes in both studies, maybe also try to use higher nStep for kinematic analysis than inverse for example a factor 2. Both of these approaches will decrease the influence of the interpolation error introduces by the drivers.

Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
  #13  
Old 11-12-2014, 04:51 PM
vikaskaul vikaskaul is offline
Member
 
Join Date: Aug 2014
Posts: 39
Default thanks

Hi Søren,

Thank you. As soon as I find some time to revisit this, I will make the suggested changes and post my feedback here.

Best,

Vikas
Reply With Quote
  #14  
Old 10-20-2017, 12:56 PM
MMMPPPMMM MMMPPPMMM is offline
Member
 
Join Date: Oct 2012
Posts: 66
Default

Quote:
Originally Posted by aalmunajjed View Post
Hi Vikas,
In a MoCap driven model, the residual force can be found in the ModelEnvironmentConnection:
Main.Studies.InverseDynamicStudy.Output.ModelEnvir onmentConnection.JointsAndDrivers.JntDriverTrunk.R eaction.Fout
Hello

Why is this a vector with 9 elements?
How do I calculate the resultant residual force with this vector?

Thanks in advance
__________________
AnyBody version : 7. 0. 1. 5467 (64-bit version)
Build : 17353.43500

Last edited by MMMPPPMMM; 10-20-2017 at 01:07 PM.
Reply With Quote
  #15  
Old 10-23-2017, 10:17 AM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 897
Default

Hi Fritz,

Please have a look at driver:

Code:
AnyKinEqInterPolDriver JntDriverTrunk = {
    FileErrorContinueOnOff = On;
    Type = Bspline;
    BsplineOrder = 4;
    FileName = "../Input/"+OutputFileNamePrefix+Main.ModelSetup.C3DFileData.NameOfFile+"-euler-trunk.txt";
    AnyKinMeasureOrg &PelvisPosX = ...BodyModel.Interface.Trunk.PelvisPosX;
    AnyKinMeasureOrg &PelvisPosY = ...BodyModel.Interface.Trunk.PelvisPosY;
    AnyKinMeasureOrg &PelvisPosZ = ...BodyModel.Interface.Trunk.PelvisPosZ;
    AnyKinMeasureOrg &PelvisRotX = ...BodyModel.Interface.Trunk.PelvisRotX;
    AnyKinMeasureOrg &PelvisRotY = ...BodyModel.Interface.Trunk.PelvisRotY;
    AnyKinMeasureOrg &PelvisRotZ = ...BodyModel.Interface.Trunk.PelvisRotZ;
    AnyKinMeasureOrg &PelvisThoraxExtension = ...BodyModel.Interface.Trunk.PelvisThoraxExtension;
    AnyKinMeasureOrg &PelvisThoraxLateralBending = ...BodyModel.Interface.Trunk.PelvisThoraxLateralBending;
    AnyKinMeasureOrg &PelvisThoraxRotation = ...BodyModel.Interface.Trunk.PelvisThoraxRotation;
    #if TRUNK == 1
    AnyKinMeasureOrg &NeckExtension = ...BodyModel.Interface.Trunk.NeckJoint;
    Reaction.Type={On,On,On,On,On,On,Off,Off,Off,Off};
    #endif 
    #if TRUNK_NECK == 1
    AnyKinMeasureOrg& SkullThoraxFlexion = ...BodyModel.Interface.Trunk.SkullThoraxFlexion;
    AnyKinMeasureOrg& SkullThoraxLateralBending = ...BodyModel.Interface.Trunk.SkullThoraxLateralBending;
    AnyKinMeasureOrg& SkullThoraxRotation = ...BodyModel.Interface.Trunk.SkullThoraxRotation; 
    Reaction.Type={On,On,On,On,On,On,Off,Off,Off,Off,Off,Off};
    #endif
  };
The vector has 9 elements but only the first 6 of them can be non-zero, since the rest has been switched off.

By default all drivers has reactions which are on until they are disabled, and size of the reactions listed will always be the size of the driver

Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
  #16  
Old 11-17-2017, 10:10 AM
MMMPPPMMM MMMPPPMMM is offline
Member
 
Join Date: Oct 2012
Posts: 66
Default

Thank you.

Am I right that the PelvisPosZ is the residual force of the transverse axis (left 2 right direction)?

Or does it depend on the global CS? Since in my case: Gravity = {0, 0, -9.81} instead of {0, -9.81, 0}

Kind regards
__________________
AnyBody version : 7. 0. 1. 5467 (64-bit version)
Build : 17353.43500

Last edited by MMMPPPMMM; 11-17-2017 at 12:57 PM.
Reply With Quote
  #17  
Old 11-20-2017, 02:50 PM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 897
Default

Hi

The PelvisPosZ is the position with respect to the global system, so it depends on the orientation in the model.

I would visualize the the global coordinate system to see this e.g.

AnyFixedRefFrame MyGlobalRef ={
AnyDrawRefFrame drw ={};
};

Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:19 PM.