Forums Anyscript.org  

Go Back   Forums Anyscript.org > Professional Forum > AnyBody Managed Model Repository

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2018, 11:13 AM
Villin Villin is offline
Junior Member
 
Join Date: Oct 2018
Posts: 2
Default Reaction Force Visualizing

Hi,
If I have exported forces about a certain joint, how to make it visualize in the model? Because I want to know the exact place of the force.
Part of my .xml file shows like this:

</Force>
<Force index="16">
<Name value="Main.HumanModel.BodyModel.Left.Leg.Jnt.Hip. Constraints.Reaction" type="string"/>
<Class value="AnyMainFolder.AnyFolder.AnyFolder.AnyFolder .AnyFolder.AnyFolder.AnySphericalJoint.AnyKinEq.An yReacForce" type="string"/>
<SegmentName value="Main.HumanModel.BodyModel.Trunk.SegmentsLum bar.PelvisSeg" type="string"/>
<SegmentID value="0" type="int"/>
<Pos type="vector" z="-8.516957779359803e-002" y=" 9.009281261246194e-001" x="-1.027217608559621e-002"/>
<RefFrame value="Main.HumanModel.BodyModel.Trunk.SegmentsLum bar.PelvisSeg.Left.HipJoint" type="string"/>
<Components count="3">
<F type="vector" z="-5.920975986137223e-013" y=" 7.574765536811257e-002" x="-4.436310925073418e+000" index="0"/>
<M type="vector" z=" 3.090226938229537e-018" y=" 3.090226938229537e-018" x=" 3.090226938229537e-018" index="0"/>
<F type="vector" z=" 3.036724554273826e-011" y=" 2.527166873369841e+002" x=" 4.315003357853268e+000" index="1"/>
<M type="vector" z=" 1.076036928912519e-016" y=" 1.076036928912519e-016" x=" 1.076036928912519e-016" index="1"/>
<F type="vector" z="-9.667740652110917e+000" y=" 1.139338793137966e-012" x=" 1.309777043847029e-012" index="2"/>
<M type="vector" z=" 3.079009126002447e-020" y=" 3.079009126002447e-020" x=" 3.079009126002447e-020" index="2"/>
</Components>
Reply With Quote
  #2  
Old 10-29-2018, 10:13 AM
pgalibarov's Avatar
pgalibarov pgalibarov is offline
Senior Member
 
Join Date: Oct 2010
Posts: 960
Default

Hi,

Please update your profile with name and affiliation. This is a professional forum and we would like to know who we are helping.

Secondly,
All the information is given in the text:
Code:
<Pos type="vector" z="-8.516957779359803e-002" y=" 9.009281261246194e-001" x="-1.027217608559621e-002"/>
This is where the exported force would act in the output reference frame that you specified in AnyMechOutputFileForceExport object.

Kind regards,
Pavel
Reply With Quote
  #3  
Old 10-29-2018, 10:43 AM
Villin Villin is offline
Junior Member
 
Join Date: Oct 2018
Posts: 2
Post

Hi,
First, I am sorry about the profile, I just don't know how to update it, and I wil have it done later.

I know the directions of the forces are showed in the output file, I just want to draw arrows in the model , is that possible?
Reply With Quote
  #4  
Old 10-29-2018, 10:55 AM
pgalibarov's Avatar
pgalibarov pgalibarov is offline
Senior Member
 
Join Date: Oct 2010
Posts: 960
Default

Yes, you could use AnyDrawVector inside the code (no need to export), something like this:

Code:
AnyDrawVector drF = {
 Vec = .Fout/200; // Scale the length down
 Line = {
 Style = Line3DStyleFull;
 Thickness = 0.01;
 RGB = {1, 0, 0};
 End = {
 Style = Line3DCapStyleArrow; // This specifies the end to be an arrowhead
 RGB = {1, 0, 0};
 Thickness = 0.02; // The head begins with twice the thickness of the shaft
 Length = 0.05;
 };
 };
// attach the arrow to the hand
 AnyRefFrame &Palm = Main.ArmModel.Segs.ForeArm.PalmNode;
 };
Please adjust to your situation.

Kind regards,
Pavel
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:55 AM.