Driving motion from point A to point B in the {x, y, z}

Hello,
I'm new to using anybody, and I'm finding it difficult to simulate abduction motion to 2 different postures in {x, y, z} . What drivers can I apply to the Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Hand.Ref.Hand (human standing model) to simulate moving from point 1 to oint 2?

Thanks.

Hi Neil,

Welcome to the forum.

Which model are you using as the basis for your model?

Moving the hand from one point to another could be done e.g. like this:

AnyKinLinear MyhandMeasure ={
AnyFixedRefFrame &ref= Main.EnvironmentModel.GlobalRef;
AnyRefFrame  &ref2 = Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Hand.Ref.Hand;
};

AnyKinEqSimpleDriver handDriver ={
AnyKinLinear &ref=.MyhandMeasure ;
DriverPos  = {0,0,0};
DriverVel ={ 0.2,0.2,0.2 };  //if the study starts in t=0 and ends at t=1 it will move hand 0.2 m in x,y,z.
};

Hope you can use it

Best regards
Søren

Thanks for the suggestion. After some reading I already tried using the AnyKinLinear together with the AnyKinEqInterPolDriver. The issue now is how to use the Bspline and time while I have only point A and Point B. I got an error when i tried that said the time t has an invalid value for this interpolation.

Hi Neil,

The interpolation functions needs to have a time vector T which is larger than tStart and tEnd otherwise you will get this error. Bsplines also needs more than four points as far as i recall. Alternatively use PiecewiseLinear instead as a start.

Best regards
Søren

1 Like

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.