I would like to applied moment on exoskeleton, the magnitude is accociated with joint acceleration.
To solve this, First, I used Mocap data by Vicon to drive the model, then connected the EXO and the human kinematically and kinetically well.
but when i applied moment on the exo joint by using Anyforce, it failed and arose following error
ERROR(SCR.EXP10) : F:/A..o/A..n/M..s/M..l/LowerExtremity.main.any(125) : 'F' : Expression evaluation failed at moment 'VelVar' :
VelFactor : argument will not be ready for evaluation until moment 'AccVar'
The code is as follows:
AnyForce RHipAbduction =
AnyKinMeasureOrg &ref = ..RHipExoAbduction;
AnyVar Sign = iffun(gtfun(ref.Acc), 1.0, -1.0); AnyFloat AccLimit = 10; AnyVar VelFactor = iffun(gteqfun(abs(ref.Acc), AccLimit), 6, abs(ref.Acc*0.3) ); F = Sign * VelFactor ; };
Would you please let me know a good idea to do it?