Hello,
I have a couple of questions regarding AnyForceMomentMeasure2. I’m trying to
calculate the hip moments in the GaitVaughn model. I’ve looked at post 2117 and
the code for finding the moment at the ankle. This is the code that Sebastian
gave:
AnyForceMomentMeasure2 AnkleJnt =
{
AnyRefNode &ref = Main.HumanModel.BodyModel.Right.Leg.Seg.Shank.AnkleJoint;
//pt of interest
AnySeg &ref1 = Main.HumanModel.BodyModel.Right.Leg.Seg.Shank;//all force
components acting on this segment will be considered
AnyForceBase &ref3 =
Main.HumanModel.BodyModel.Right.Leg.Jnt.Ankle.Constraints.Reaction;//force base
};
I know that this works for the ankle, but I can’t seem to get something similar
to work for the hip. I tried this code for the hip, but it results in a moment
that is really close to 0.
AnyForceMomentMeasure2 HipJnt2 =
{
AnyRefNode &ref = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.HipJoint;
//pt of interest
AnySeg &ref1 = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh;//all force
components acting on this segment will be considered
AnyForceBase &ref3 =
Main.HumanModel.BodyModel.Right.Leg.Jnt.Hip.Constraints.Reaction;//force base
};
I also tried including the pelvis segment and naming all of the muscles
individually instead of using the reaction force, and the result is better, but
the entire moment is positive, and I should be getting a flexor moment
mid-cycle.
Could anyone tell me where I am going wrong?
Thanks,
Abra