External load in Mocap in a point out of the body

Hello Anybody,
I am a novice to Anybody, and I need your kind help. I am working with AMMRv.2.3. with Mocap simple gait. I want to define a point in the global reference frame that a specific load is applied to it. Then, I want to define that the node as a part of the hand segment, so in this way, I think a pure force and torque is transferred to the hand. The reason that I want to do this is that the actual position of my load differs from the position of the hand's marker and the palm joint, so in this way I want to transfer the effects of the load in the point to the current position of the hand. I read the questions and guidance about defining the external load in Mocap simple gait, but I do not know how to determine it as a segment of hand. I also defined the point in the reference of the hand segment but 2 points were created, which were the mirror of each other, and I could not define each node separately related to the palm joint of the right and left hand.
Will you please help me to define the point as a part of the hand..My code for external force in the point of palmnode in global reference is..

AnyForce3D lefthandload={
AnyRefFrame &ref= Main.HumanModel.BodyModel.Left.ShoulderArm.Seg.Hand.Ref.PalmJoint;
F={0,0,-14.89/29.81};
AnyDrawVector Drw = {
AnyRefFrame &ref= .ref;
Vec = .F/1000;
Line = {
Thickness = 0.025;
RGB = {1, 0, 0};
End = {
RGB = {1, 0, 0};
Thickness = 0.02;
Length = 0.01
0.02;
};
};
PointAway= On;
Text= "lefthandload";
};
AnyFloat FoutTest=Fout;
};

Hi Parisa,

You will need to create a node on the hand segment and apply the load to this node, this is the only way to make load go to the correct segment.

When you add things to the model you do not need to find the location of the object and add the node there you can "open" up the object and add to it from the "outside"

Add these lines anywhere in your code:

AnyRefFrame &Ref_To_PalmJointNode= Main.HumanModel.BodyModel.Left.ShoulderArm.Seg.Hand.Ref.PalmJoint;
//open the folder 
Ref_To_PalmJointNode={
AnyRefNode MY_New_Node ={
sRel = {0.1,0.1,0.1};
AnyDrawRefFrame drw ={}; 
};
};
AnyForce3D lefthandload={
AnyRefFrame &ref= Main.HumanModel.BodyModel.Left.ShoulderArm.Seg.Hand.Ref.PalmJoint.MY_New_Node ;
F={0,0,-14.89/29.81};
AnyDrawVector Drw = {
AnyRefFrame &ref= .ref;
Vec = .F/1000;
Line = {
Thickness = 0.025;
RGB = {1, 0, 0};
End = {
RGB = {1, 0, 0};
Thickness = 0.02;
Length = 0.010.02;
};
};
PointAway= On;
Text= "lefthandload";
};
AnyFloat FoutTest=Fout;
};

Best regards
Søren

Hello Søren,
Thanks for your quick response. I really appreciate your help. Thanks a lot.
Best wishes,
Parisa

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