Hi, i have included a segment representing a bed and defined two AnyRefNode at the bed which acted as the bed contact points of the subjects. The position of these two AnyRefNode will change from time to time. I used AnyFunInterpol to interpolate the data of the positions from the .csv file first, and put in the sRel as shown:
AnySeg Bed={
r0={ 0.5, 0.55, 2.38};
Mass=0;
Jii={0,0,0};
AnyDrawSurf DrwBox = {
FileName = "..\..\..\CAD-Files\box";
RGB = {0,0,1};
ScaleXYZ={4,0.27,2};
Opacity =0.5;
Face=-1;
};
AnyRefNode NodeLeft0={
sRel={..ForceFun(Main.Studies.InverseDynamicStudy.t)[6],..ForceFun(Main.Studies.InverseDynamicStudy.t)[7], ..ForceFun(Main.Studies.InverseDynamicStudy.t)[8]};
ARel=RotMat(pi,x);
AnyDrawRefFrame drw={
RGB={1,0,0};
ScaleXYZ=0.2*{1,1,1};
};
};
AnyRefNode NodeRight0={
sRel={..ForceFun(Main.Studies.InverseDynamicStudy.t)[9],..ForceFun(Main.Studies.InverseDynamicStudy.t)[10], ..ForceFun(Main.Studies.InverseDynamicStudy.t)[11]};
ARel=RotMat(pi,x);
AnyDrawRefFrame drw={
RGB={1,0,0};
ScaleXYZ=0.2*{1,1,1};
};
};
};
However, there is error as shown:
ERROR(SCR.EXP10) : BedReac.any(52) : 'NodeLeft0' : Expression evaluation failed at moment 'DesignVar' :
AnyMocapModel.any(60) : InverseDynamicStudy.t : argument will not be ready for evaluation until moment 'TimeVar'
Model loading skipped
May I know how to solve this issue ?