anyforce drawing question

Hi AnyBody guys and gals (and anyone else who wants to do some bug testing) -

This may be a bug…not quite sure. Let me tell you what is going ‘wrong’
(beyond what is
in my head).

I have been playing around with the Rowing Machine Microgravity ESA example in
Repository 7.0. For fun I decided to plot the forces that are being applied to
the hands
and the feet. I believe they are in the Loads folder in the Environment.any
file. I tried
plotting the forces quickly and I noticed they were pointing in the same
direction. That
seemed very weird as looking in the model heirarchy, they are clearly the
negatives of one
another.

I am copying the Load = { } (see below); folder that goes in the Environment.any
file that I
have been using. I have created 2 scenarios (see how Vec = {} is defined in
each of the
drawing functions). The first one (i.e. Vec = {1,0,0} and Vec = {-1,0,0}), for
me, produces
vectors pointing in the same direction. The second one (i.e. Vec = {0,1,0} and
Vec = {0,-
1,0}) produces vectors pointing in opposite directions. I changed the point of
application
to the same reference frame, and got the same result. It seems as if the x
coordinate in
the plot function is ignoring the sign??

Hopefully I am doing something wrong and you can show me the error in my ways.
If not,
we can talk about my compensation.

Here is the code:

AnyFolder Load ={

 AnyFunInterpol Force =
 {
   Type = Bspline;
   BsplineOrder = 4;
   FileName = "ReacForcesCase1.txt";
 };


 AnyForce PushPullUnitForce =
 {
   F = .Force(t)*(-1);
   AnyPrismaticJoint &PushPullJoint =

Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;

   //draw the force...
   AnyDrawVector drF = {
     //Vec = {.Fout[0]/500,0,0};   // Scale the length down
     Vec = {1,0,0};   // Does not point in the opposite direction as the

force below
// Vec = {0,1,0}; // Does point in the opposite direction as the force
below

     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;
     AnyRefFrame &Palm =

Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
//AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
};

 };

 //force applied to a kinematic measure defined by a prismatic joint
 AnyForce FootRestForce =
 {
   F = .Force(t)*(1);
   AnyPrismaticJoint &FootRestJoint =

Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;

   //draw the force...
   AnyDrawVector drF = {
     //Vec = {.Fout[0]/500,0,0};   // Scale the length down

     Vec = {-1,0,0};   //does not point in the opposite direction as the

force above
//Vec = {0,-1,0}; //does point in the opposite direction as the force
above

     Line = {
       Style = Line3DStyleFull;
       Thickness = 0.01;
       RGB = {0, 1, 0};
       End = {
         Style = Line3DCapStyleArrow;  // This specifies the end to be an

arrowhead
RGB = {0, 1, 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;
     AnyRefFrame &Palm =

Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
//AnyRefFrame &Palm =
Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
//AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
};
};

}; //Load

Hey David,

You are right, this sound a little bit strange. I tried to replicate your
problem and I could not found anything suspicious.

The vectors are actually plotted in the opposite directions, so I’m not sure
how I can help you. Which version of the AMS are you using?

Best regards,

Sebastian


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: 23. oktober 2008 01:37
To: anyscript@yahoogroups.com
Subject: [AnyScript] anyforce drawing question

Hi AnyBody guys and gals (and anyone else who wants to do some bug testing)

This may be a bug…not quite sure. Let me tell you what is going ‘wrong’
(beyond what is
in my head).

I have been playing around with the Rowing Machine Microgravity ESA example
in
Repository 7.0. For fun I decided to plot the forces that are being applied
to the hands
and the feet. I believe they are in the Loads folder in the Environment.any
file. I tried
plotting the forces quickly and I noticed they were pointing in the same
direction. That
seemed very weird as looking in the model heirarchy, they are clearly the
negatives of one
another.

I am copying the Load = { } (see below); folder that goes in the
Environment.any file that I
have been using. I have created 2 scenarios (see how Vec = {} is defined in
each of the
drawing functions). The first one (i.e. Vec = {1,0,0} and Vec = {-1,0,0}),
for me, produces
vectors pointing in the same direction. The second one (i.e. Vec = {0,1,0}
and Vec = {0,-
1,0}) produces vectors pointing in opposite directions. I changed the point
of application
to the same reference frame, and got the same result. It seems as if the x
coordinate in
the plot function is ignoring the sign??

Hopefully I am doing something wrong and you can show me the error in my
ways. If not,
we can talk about my compensation.

Here is the code:

AnyFolder Load ={

AnyFunInterpol Force =
{
Type = Bspline;
BsplineOrder = 4;
FileName = “ReacForcesCase1.txt”;
};

AnyForce PushPullUnitForce =
{
F = .Force(t)*(-1);
AnyPrismaticJoint &PushPullJoint =
Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;

//draw the force…
AnyDrawVector drF = {
//Vec = {.Fout[0]/500,0,0}; // Scale the length down
Vec = {1,0,0}; // Does not point in the opposite direction as the force
below
// Vec = {0,1,0}; // Does point in the opposite direction as the force below

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;
AnyRefFrame &Palm =
Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
//AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
};

};

//force applied to a kinematic measure defined by a prismatic joint
AnyForce FootRestForce =
{
F = .Force(t)*(1);
AnyPrismaticJoint &FootRestJoint =
Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;

//draw the force…
AnyDrawVector drF = {
//Vec = {.Fout[0]/500,0,0}; // Scale the length down

Vec = {-1,0,0}; //does not point in the opposite direction as the force
above
//Vec = {0,-1,0}; //does point in the opposite direction as the force above

Line = {
Style = Line3DStyleFull;
Thickness = 0.01;
RGB = {0, 1, 0};
End = {
Style = Line3DCapStyleArrow; // This specifies the end to be an arrowhead
RGB = {0, 1, 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;
AnyRefFrame &Palm =
Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
//AnyRefFrame &Palm =
Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
//AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
};
};

}; //Load

[Non-text portions of this message have been removed]

Hey Sebastian,

Well it is good that you don’t have the problem (means it probably is something
wrong
only on my end). The AnyBody version I am using is:

AnyBody version : 3. 0. 3.
Build : 14070.26941

I am uploading a picture of what I am seeing (ESARowing_drawVecError.png). No
matter if
I use Vec = {-1,0,0}; or Vec = {1,0,0}, I get the vectors pointing in the same
direction (to
the left, in the positive global X direction).

Any other thoughts?

Best,
David

— In anyscript@yahoogroups.com, Sebastian Dendorfer <anyscriptsup@…> wrote:
>
> Hey David,
>
>
>
> You are right, this sound a little bit strange. I tried to replicate your
> problem and I could not found anything suspicious.
>
> The vectors are actually plotted in the opposite directions, so I’m not sure
> how I can help you. Which version of the AMS are you using?
>
>
>
> Best regards,
>
> Sebastian
>
>
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
> Of dww805
> Sent: 23. oktober 2008 01:37
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] anyforce drawing question
>
>
>
> Hi AnyBody guys and gals (and anyone else who wants to do some bug testing)
> -
>
> This may be a bug…not quite sure. Let me tell you what is going ‘wrong’
> (beyond what is
> in my head).
>
> I have been playing around with the Rowing Machine Microgravity ESA example
> in
> Repository 7.0. For fun I decided to plot the forces that are being applied
> to the hands
> and the feet. I believe they are in the Loads folder in the Environment.any
> file. I tried
> plotting the forces quickly and I noticed they were pointing in the same
> direction. That
> seemed very weird as looking in the model heirarchy, they are clearly the
> negatives of one
> another.
>
> I am copying the Load = { } (see below); folder that goes in the
> Environment.any file that I
> have been using. I have created 2 scenarios (see how Vec = {} is defined in
> each of the
> drawing functions). The first one (i.e. Vec = {1,0,0} and Vec = {-1,0,0}),
> for me, produces
> vectors pointing in the same direction. The second one (i.e. Vec = {0,1,0}
> and Vec = {0,-
> 1,0}) produces vectors pointing in opposite directions. I changed the point
> of application
> to the same reference frame, and got the same result. It seems as if the x
> coordinate in
> the plot function is ignoring the sign??
>
> Hopefully I am doing something wrong and you can show me the error in my
> ways. If not,
> we can talk about my compensation.
>
> Here is the code:
>
> AnyFolder Load ={
>
>
> AnyFunInterpol Force =
> {
> Type = Bspline;
> BsplineOrder = 4;
> FileName = “ReacForcesCase1.txt”;
> };
>
>
> AnyForce PushPullUnitForce =
> {
> F = .Force(t)(-1);
> AnyPrismaticJoint &PushPullJoint =
> Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;
>
> //draw the force…
> AnyDrawVector drF = {
> //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> Vec = {1,0,0}; // Does not point in the opposite direction as the force
> below
> // Vec = {0,1,0}; // Does point in the opposite direction as the force below
>
> 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;
> AnyRefFrame &Palm =
> Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> };
>
> };
>
> //force applied to a kinematic measure defined by a prismatic joint
> AnyForce FootRestForce =
> {
> F = .Force(t)
(1);
> AnyPrismaticJoint &FootRestJoint =
> Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;
>
>
> //draw the force…
> AnyDrawVector drF = {
> //Vec = {.Fout[0]/500,0,0}; // Scale the length down
>
> Vec = {-1,0,0}; //does not point in the opposite direction as the force
> above
> //Vec = {0,-1,0}; //does point in the opposite direction as the force above
>
> Line = {
> Style = Line3DStyleFull;
> Thickness = 0.01;
> RGB = {0, 1, 0};
> End = {
> Style = Line3DCapStyleArrow; // This specifies the end to be an arrowhead
> RGB = {0, 1, 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;
> AnyRefFrame &Palm =
> Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
> //AnyRefFrame &Palm =
> Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> };
> };
>
>
> }; //Load
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

I have found something that may be the culprit. If I manually set ‘GlobalCoord’
to off (it
was by default set to ‘on’), I don’t seem to get the problem documented below.
Maybe this
will help with reproducing the issue on your end. And whether or not this is
actually a
problem.

Best,
David

— In anyscript@yahoogroups.com, “dww805” <dwwagner@…> wrote:
>
> Hey Sebastian,
>
> Well it is good that you don’t have the problem (means it probably is
something wrong
> only on my end). The AnyBody version I am using is:
>
> AnyBody version : 3. 0. 3.
> Build : 14070.26941
>
> I am uploading a picture of what I am seeing (ESARowing_drawVecError.png). No
matter
if
> I use Vec = {-1,0,0}; or Vec = {1,0,0}, I get the vectors pointing in the same
direction (to
> the left, in the positive global X direction).
>
> Any other thoughts?
>
> Best,
> David
>
>
> — In anyscript@yahoogroups.com, Sebastian Dendorfer <anyscriptsup@> wrote:
> >
> > Hey David,
> >
> >
> >
> > You are right, this sound a little bit strange. I tried to replicate your
> > problem and I could not found anything suspicious.
> >
> > The vectors are actually plotted in the opposite directions, so I’m not sure
> > how I can help you. Which version of the AMS are you using?
> >
> >
> >
> > Best regards,
> >
> > Sebastian
> >
> >
> >
> >
> >
> > _____
> >
> > From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
> > Of dww805
> > Sent: 23. oktober 2008 01:37
> > To: anyscript@yahoogroups.com
> > Subject: [AnyScript] anyforce drawing question
> >
> >
> >
> > Hi AnyBody guys and gals (and anyone else who wants to do some bug testing)
> > -
> >
> > This may be a bug…not quite sure. Let me tell you what is going ‘wrong’
> > (beyond what is
> > in my head).
> >
> > I have been playing around with the Rowing Machine Microgravity ESA example
> > in
> > Repository 7.0. For fun I decided to plot the forces that are being applied
> > to the hands
> > and the feet. I believe they are in the Loads folder in the Environment.any
> > file. I tried
> > plotting the forces quickly and I noticed they were pointing in the same
> > direction. That
> > seemed very weird as looking in the model heirarchy, they are clearly the
> > negatives of one
> > another.
> >
> > I am copying the Load = { } (see below); folder that goes in the
> > Environment.any file that I
> > have been using. I have created 2 scenarios (see how Vec = {} is defined in
> > each of the
> > drawing functions). The first one (i.e. Vec = {1,0,0} and Vec = {-1,0,0}),
> > for me, produces
> > vectors pointing in the same direction. The second one (i.e. Vec = {0,1,0}
> > and Vec = {0,-
> > 1,0}) produces vectors pointing in opposite directions. I changed the point
> > of application
> > to the same reference frame, and got the same result. It seems as if the x
> > coordinate in
> > the plot function is ignoring the sign??
> >
> > Hopefully I am doing something wrong and you can show me the error in my
> > ways. If not,
> > we can talk about my compensation.
> >
> > Here is the code:
> >
> > AnyFolder Load ={
> >
> >
> > AnyFunInterpol Force =
> > {
> > Type = Bspline;
> > BsplineOrder = 4;
> > FileName = “ReacForcesCase1.txt”;
> > };
> >
> >
> > AnyForce PushPullUnitForce =
> > {
> > F = .Force(t)(-1);
> > AnyPrismaticJoint &PushPullJoint =
> > Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;
> >
> > //draw the force…
> > AnyDrawVector drF = {
> > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > Vec = {1,0,0}; // Does not point in the opposite direction as the force
> > below
> > // Vec = {0,1,0}; // Does point in the opposite direction as the force below
> >
> > 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;
> > AnyRefFrame &Palm =
> > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > };
> >
> > };
> >
> > //force applied to a kinematic measure defined by a prismatic joint
> > AnyForce FootRestForce =
> > {
> > F = .Force(t)
(1);
> > AnyPrismaticJoint &FootRestJoint =
> > Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;
> >
> >
> > //draw the force…
> > AnyDrawVector drF = {
> > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> >
> > Vec = {-1,0,0}; //does not point in the opposite direction as the force
> > above
> > //Vec = {0,-1,0}; //does point in the opposite direction as the force above
> >
> > Line = {
> > Style = Line3DStyleFull;
> > Thickness = 0.01;
> > RGB = {0, 1, 0};
> > End = {
> > Style = Line3DCapStyleArrow; // This specifies the end to be an arrowhead
> > RGB = {0, 1, 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;
> > AnyRefFrame &Palm =
> > Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
> > //AnyRefFrame &Palm =
> > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > };
> > };
> >
> >
> > }; //Load
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>

Hi David,

We checked it again and there is no way to reproduce the error. I have
exactly the same version of Anybody (AnyBody version : 3. 0. 3. Build :
14070.26941) and I copy paste the exact code you send previously. But
everything is working fine, the vectors are pointing in opposite direction
as they should, regardless if the ‘GlobalCoord’ is On or Off.

Did you change anything in the model? Even if I can’t see what changes could
explain this behaviour.

So we did a small model displaying forces in opposite direction using the
same code (it works fine for us). Could you please try it so we can see if
the problem is coming from your model or from the software. The model is
bugvector.any.

Best regards,

Sylvain, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: 24. oktober 2008 00:27
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: anyforce drawing question

I have found something that may be the culprit. If I manually set
‘GlobalCoord’ to off (it
was by default set to ‘on’), I don’t seem to get the problem documented
below. Maybe this
will help with reproducing the issue on your end. And whether or not this is
actually a
problem.

Best,
David

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“dww805” <dwwagner@…> wrote:
>
> Hey Sebastian,
>
> Well it is good that you don’t have the problem (means it probably is
something wrong
> only on my end). The AnyBody version I am using is:
>
> AnyBody version : 3. 0. 3.
> Build : 14070.26941
>
> I am uploading a picture of what I am seeing (ESARowing_drawVecError.png).
No matter
if
> I use Vec = {-1,0,0}; or Vec = {1,0,0}, I get the vectors pointing in the
same direction (to
> the left, in the positive global X direction).
>
> Any other thoughts?
>
> Best,
> David
>
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
Sebastian Dendorfer <anyscriptsup@> wrote:
> >
> > Hey David,
> >
> >
> >
> > You are right, this sound a little bit strange. I tried to replicate
your
> > problem and I could not found anything suspicious.
> >
> > The vectors are actually plotted in the opposite directions, so I’m not
sure
> > how I can help you. Which version of the AMS are you using?
> >
> >
> >
> > Best regards,
> >
> > Sebastian
> >
> >
> >
> >
> >
> > _____
> >
> > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
Behalf
> > Of dww805
> > Sent: 23. oktober 2008 01:37
> > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > Subject: [AnyScript] anyforce drawing question
> >
> >
> >
> > Hi AnyBody guys and gals (and anyone else who wants to do some bug
testing)
> > -
> >
> > This may be a bug…not quite sure. Let me tell you what is going
‘wrong’
> > (beyond what is
> > in my head).
> >
> > I have been playing around with the Rowing Machine Microgravity ESA
example
> > in
> > Repository 7.0. For fun I decided to plot the forces that are being
applied
> > to the hands
> > and the feet. I believe they are in the Loads folder in the
Environment.any
> > file. I tried
> > plotting the forces quickly and I noticed they were pointing in the same
> > direction. That
> > seemed very weird as looking in the model heirarchy, they are clearly
the
> > negatives of one
> > another.
> >
> > I am copying the Load = { } (see below); folder that goes in the
> > Environment.any file that I
> > have been using. I have created 2 scenarios (see how Vec = {} is defined
in
> > each of the
> > drawing functions). The first one (i.e. Vec = {1,0,0} and Vec =
{-1,0,0}),
> > for me, produces
> > vectors pointing in the same direction. The second one (i.e. Vec =
{0,1,0}
> > and Vec = {0,-
> > 1,0}) produces vectors pointing in opposite directions. I changed the
point
> > of application
> > to the same reference frame, and got the same result. It seems as if the
x
> > coordinate in
> > the plot function is ignoring the sign??
> >
> > Hopefully I am doing something wrong and you can show me the error in my
> > ways. If not,
> > we can talk about my compensation.
> >
> > Here is the code:
> >
> > AnyFolder Load ={
> >
> >
> > AnyFunInterpol Force =
> > {
> > Type = Bspline;
> > BsplineOrder = 4;
> > FileName = “ReacForcesCase1.txt”;
> > };
> >
> >
> > AnyForce PushPullUnitForce =
> > {
> > F = .Force(t)(-1);
> > AnyPrismaticJoint &PushPullJoint =
> > Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;
> >
> > //draw the force…
> > AnyDrawVector drF = {
> > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > Vec = {1,0,0}; // Does not point in the opposite direction as the force
> > below
> > // Vec = {0,1,0}; // Does point in the opposite direction as the force
below
> >
> > 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;
> > AnyRefFrame &Palm =
> > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > };
> >
> > };
> >
> > //force applied to a kinematic measure defined by a prismatic joint
> > AnyForce FootRestForce =
> > {
> > F = .Force(t)
(1);
> > AnyPrismaticJoint &FootRestJoint =
> > Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;
> >
> >
> > //draw the force…
> > AnyDrawVector drF = {
> > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> >
> > Vec = {-1,0,0}; //does not point in the opposite direction as the force
> > above
> > //Vec = {0,-1,0}; //does point in the opposite direction as the force
above
> >
> > Line = {
> > Style = Line3DStyleFull;
> > Thickness = 0.01;
> > RGB = {0, 1, 0};
> > End = {
> > Style = Line3DCapStyleArrow; // This specifies the end to be an
arrowhead
> > RGB = {0, 1, 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;
> > AnyRefFrame &Palm =
> > Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
> > //AnyRefFrame &Palm =
> > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > };
> > };
> >
> >
> > }; //Load
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>

[Non-text portions of this message have been removed]

Hi Sylvain,

I tried the bugvector code you wrote and I get the same error. I have uploaded
2 picture
of what I am seeing. bugvector_x.png is when:
Vec = {somevalueHere, 0,0} and
Vec = {-somevalueHere,0,0}

bugvector_y.png is when:
Vec = {0,somevalueHere,0} and
Vec = {0,-somevalueHere,0}

There is a clear difference. Any other ideas?

Best,
David

— In anyscript@yahoogroups.com, AnyScript Support <anyscriptsup@…> wrote:
>
> Hi David,
>
>
>
> We checked it again and there is no way to reproduce the error. I have
> exactly the same version of Anybody (AnyBody version : 3. 0. 3. Build :
> 14070.26941) and I copy paste the exact code you send previously. But
> everything is working fine, the vectors are pointing in opposite direction
> as they should, regardless if the ‘GlobalCoord’ is On or Off.
>
> Did you change anything in the model? Even if I can’t see what changes could
> explain this behaviour.
>
>
>
> So we did a small model displaying forces in opposite direction using the
> same code (it works fine for us). Could you please try it so we can see if
> the problem is coming from your model or from the software. The model is
> bugvector.any.
>
>
>
> Best regards,
>
> Sylvain, AnyBody Support
>
>
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
> Of dww805
> Sent: 24. oktober 2008 00:27
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Re: anyforce drawing question
>
>
>
> I have found something that may be the culprit. If I manually set
> ‘GlobalCoord’ to off (it
> was by default set to ‘on’), I don’t seem to get the problem documented
> below. Maybe this
> will help with reproducing the issue on your end. And whether or not this is
> actually a
> problem.
>
> Best,
> David
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> “dww805” <dwwagner@> wrote:
> >
> > Hey Sebastian,
> >
> > Well it is good that you don’t have the problem (means it probably is
> something wrong
> > only on my end). The AnyBody version I am using is:
> >
> > AnyBody version : 3. 0. 3.
> > Build : 14070.26941
> >
> > I am uploading a picture of what I am seeing (ESARowing_drawVecError.png).
> No matter
> if
> > I use Vec = {-1,0,0}; or Vec = {1,0,0}, I get the vectors pointing in the
> same direction (to
> > the left, in the positive global X direction).
> >
> > Any other thoughts?
> >
> > Best,
> > David
> >
> >
> > — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> Sebastian Dendorfer <anyscriptsup@> wrote:
> > >
> > > Hey David,
> > >
> > >
> > >
> > > You are right, this sound a little bit strange. I tried to replicate
> your
> > > problem and I could not found anything suspicious.
> > >
> > > The vectors are actually plotted in the opposite directions, so I’m not
> sure
> > > how I can help you. Which version of the AMS are you using?
> > >
> > >
> > >
> > > Best regards,
> > >
> > > Sebastian
> > >
> > >
> > >
> > >
> > >
> > > _____
> > >
> > > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
> Behalf
> > > Of dww805
> > > Sent: 23. oktober 2008 01:37
> > > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > > Subject: [AnyScript] anyforce drawing question
> > >
> > >
> > >
> > > Hi AnyBody guys and gals (and anyone else who wants to do some bug
> testing)
> > > -
> > >
> > > This may be a bug…not quite sure. Let me tell you what is going
> ‘wrong’
> > > (beyond what is
> > > in my head).
> > >
> > > I have been playing around with the Rowing Machine Microgravity ESA
> example
> > > in
> > > Repository 7.0. For fun I decided to plot the forces that are being
> applied
> > > to the hands
> > > and the feet. I believe they are in the Loads folder in the
> Environment.any
> > > file. I tried
> > > plotting the forces quickly and I noticed they were pointing in the same
> > > direction. That
> > > seemed very weird as looking in the model heirarchy, they are clearly
> the
> > > negatives of one
> > > another.
> > >
> > > I am copying the Load = { } (see below); folder that goes in the
> > > Environment.any file that I
> > > have been using. I have created 2 scenarios (see how Vec = {} is defined
> in
> > > each of the
> > > drawing functions). The first one (i.e. Vec = {1,0,0} and Vec =
> {-1,0,0}),
> > > for me, produces
> > > vectors pointing in the same direction. The second one (i.e. Vec =
> {0,1,0}
> > > and Vec = {0,-
> > > 1,0}) produces vectors pointing in opposite directions. I changed the
> point
> > > of application
> > > to the same reference frame, and got the same result. It seems as if the
> x
> > > coordinate in
> > > the plot function is ignoring the sign??
> > >
> > > Hopefully I am doing something wrong and you can show me the error in my
> > > ways. If not,
> > > we can talk about my compensation.
> > >
> > > Here is the code:
> > >
> > > AnyFolder Load ={
> > >
> > >
> > > AnyFunInterpol Force =
> > > {
> > > Type = Bspline;
> > > BsplineOrder = 4;
> > > FileName = “ReacForcesCase1.txt”;
> > > };
> > >
> > >
> > > AnyForce PushPullUnitForce =
> > > {
> > > F = .Force(t)(-1);
> > > AnyPrismaticJoint &PushPullJoint =
> > > Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;
> > >
> > > //draw the force…
> > > AnyDrawVector drF = {
> > > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > > Vec = {1,0,0}; // Does not point in the opposite direction as the force
> > > below
> > > // Vec = {0,1,0}; // Does point in the opposite direction as the force
> below
> > >
> > > 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;
> > > AnyRefFrame &Palm =
> > > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > > };
> > >
> > > };
> > >
> > > //force applied to a kinematic measure defined by a prismatic joint
> > > AnyForce FootRestForce =
> > > {
> > > F = .Force(t)
(1);
> > > AnyPrismaticJoint &FootRestJoint =
> > > Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;
> > >
> > >
> > > //draw the force…
> > > AnyDrawVector drF = {
> > > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > >
> > > Vec = {-1,0,0}; //does not point in the opposite direction as the force
> > > above
> > > //Vec = {0,-1,0}; //does point in the opposite direction as the force
> above
> > >
> > > Line = {
> > > Style = Line3DStyleFull;
> > > Thickness = 0.01;
> > > RGB = {0, 1, 0};
> > > End = {
> > > Style = Line3DCapStyleArrow; // This specifies the end to be an
> arrowhead
> > > RGB = {0, 1, 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;
> > > AnyRefFrame &Palm =
> > > Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
> > > //AnyRefFrame &Palm =
> > > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > > };
> > > };
> > >
> > >
> > > }; //Load
> > >
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Hi David

This is strange we do not see this error on our screens, so it must somehow
be related to a difference in hardware!

This is just a wild shoot: could you please try to compare the output from
doing a ctrl+PrtSc and the output from doing a right click +copy in the
modelview. I know these should be identical but at least for the text in the
ModelView, we have seen these to change color on some graphics adapters, so
maybe this could be something similar.

I think we will need some hardware details to resolve this issue; we will
contact you outside the group to exchange these.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: 24 October 2008 17:52
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: anyforce drawing question

Hi Sylvain,

I tried the bugvector code you wrote and I get the same error. I have
uploaded 2 picture
of what I am seeing. bugvector_x.png is when:
Vec = {somevalueHere, 0,0} and
Vec = {-somevalueHere,0,0}

bugvector_y.png is when:
Vec = {0,somevalueHere,0} and
Vec = {0,-somevalueHere,0}

There is a clear difference. Any other ideas?

Best,
David

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
AnyScript Support <anyscriptsup@…> wrote:
>
> Hi David,
>
>
>
> We checked it again and there is no way to reproduce the error. I have
> exactly the same version of Anybody (AnyBody version : 3. 0. 3. Build :
> 14070.26941) and I copy paste the exact code you send previously. But
> everything is working fine, the vectors are pointing in opposite direction
> as they should, regardless if the ‘GlobalCoord’ is On or Off.
>
> Did you change anything in the model? Even if I can’t see what changes
could
> explain this behaviour.
>
>
>
> So we did a small model displaying forces in opposite direction using the
> same code (it works fine for us). Could you please try it so we can see if
> the problem is coming from your model or from the software. The model is
> bugvector.any.
>
>
>
> Best regards,
>
> Sylvain, AnyBody Support
>
>
>
>
>
> _____
>
> From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
Behalf
> Of dww805
> Sent: 24. oktober 2008 00:27
> To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> Subject: [AnyScript] Re: anyforce drawing question
>
>
>
> I have found something that may be the culprit. If I manually set
> ‘GlobalCoord’ to off (it
> was by default set to ‘on’), I don’t seem to get the problem documented
> below. Maybe this
> will help with reproducing the issue on your end. And whether or not this
is
> actually a
> problem.
>
> Best,
> David
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> “dww805” <dwwagner@> wrote:
> >
> > Hey Sebastian,
> >
> > Well it is good that you don’t have the problem (means it probably is
> something wrong
> > only on my end). The AnyBody version I am using is:
> >
> > AnyBody version : 3. 0. 3.
> > Build : 14070.26941
> >
> > I am uploading a picture of what I am seeing
(ESARowing_drawVecError.png).
> No matter
> if
> > I use Vec = {-1,0,0}; or Vec = {1,0,0}, I get the vectors pointing in
the
> same direction (to
> > the left, in the positive global X direction).
> >
> > Any other thoughts?
> >
> > Best,
> > David
> >
> >
> > — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> Sebastian Dendorfer <anyscriptsup@> wrote:
> > >
> > > Hey David,
> > >
> > >
> > >
> > > You are right, this sound a little bit strange. I tried to replicate
> your
> > > problem and I could not found anything suspicious.
> > >
> > > The vectors are actually plotted in the opposite directions, so I’m
not
> sure
> > > how I can help you. Which version of the AMS are you using?
> > >
> > >
> > >
> > > Best regards,
> > >
> > > Sebastian
> > >
> > >
> > >
> > >
> > >
> > > _____
> > >
> > > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com]
On
> Behalf
> > > Of dww805
> > > Sent: 23. oktober 2008 01:37
> > > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > > Subject: [AnyScript] anyforce drawing question
> > >
> > >
> > >
> > > Hi AnyBody guys and gals (and anyone else who wants to do some bug
> testing)
> > > -
> > >
> > > This may be a bug…not quite sure. Let me tell you what is going
> ‘wrong’
> > > (beyond what is
> > > in my head).
> > >
> > > I have been playing around with the Rowing Machine Microgravity ESA
> example
> > > in
> > > Repository 7.0. For fun I decided to plot the forces that are being
> applied
> > > to the hands
> > > and the feet. I believe they are in the Loads folder in the
> Environment.any
> > > file. I tried
> > > plotting the forces quickly and I noticed they were pointing in the
same
> > > direction. That
> > > seemed very weird as looking in the model heirarchy, they are clearly
> the
> > > negatives of one
> > > another.
> > >
> > > I am copying the Load = { } (see below); folder that goes in the
> > > Environment.any file that I
> > > have been using. I have created 2 scenarios (see how Vec = {} is
defined
> in
> > > each of the
> > > drawing functions). The first one (i.e. Vec = {1,0,0} and Vec =
> {-1,0,0}),
> > > for me, produces
> > > vectors pointing in the same direction. The second one (i.e. Vec =
> {0,1,0}
> > > and Vec = {0,-
> > > 1,0}) produces vectors pointing in opposite directions. I changed the
> point
> > > of application
> > > to the same reference frame, and got the same result. It seems as if
the
> x
> > > coordinate in
> > > the plot function is ignoring the sign??
> > >
> > > Hopefully I am doing something wrong and you can show me the error in
my
> > > ways. If not,
> > > we can talk about my compensation.
> > >
> > > Here is the code:
> > >
> > > AnyFolder Load ={
> > >
> > >
> > > AnyFunInterpol Force =
> > > {
> > > Type = Bspline;
> > > BsplineOrder = 4;
> > > FileName = “ReacForcesCase1.txt”;
> > > };
> > >
> > >
> > > AnyForce PushPullUnitForce =
> > > {
> > > F = .Force(t)(-1);
> > > AnyPrismaticJoint &PushPullJoint =
> > > Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;
> > >
> > > //draw the force…
> > > AnyDrawVector drF = {
> > > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > > Vec = {1,0,0}; // Does not point in the opposite direction as the
force
> > > below
> > > // Vec = {0,1,0}; // Does point in the opposite direction as the force
> below
> > >
> > > 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;
> > > AnyRefFrame &Palm =
> > > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > > };
> > >
> > > };
> > >
> > > //force applied to a kinematic measure defined by a prismatic joint
> > > AnyForce FootRestForce =
> > > {
> > > F = .Force(t)
(1);
> > > AnyPrismaticJoint &FootRestJoint =
> > > Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;
> > >
> > >
> > > //draw the force…
> > > AnyDrawVector drF = {
> > > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > >
> > > Vec = {-1,0,0}; //does not point in the opposite direction as the
force
> > > above
> > > //Vec = {0,-1,0}; //does point in the opposite direction as the force
> above
> > >
> > > Line = {
> > > Style = Line3DStyleFull;
> > > Thickness = 0.01;
> > > RGB = {0, 1, 0};
> > > End = {
> > > Style = Line3DCapStyleArrow; // This specifies the end to be an
> arrowhead
> > > RGB = {0, 1, 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;
> > > AnyRefFrame &Palm =
> > > Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
> > > //AnyRefFrame &Palm =
> > > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > > };
> > > };
> > >
> > >
> > > }; //Load
> > >
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

Hi Søren,

I did the right click + copy and that picture seems to be correct! I will reply
to your offline
email, but thought I would post here as well for anyone else that may encounter
something similar.

Best,
David

— In anyscript@yahoogroups.com, AnyScript Support <anyscriptsup@…> wrote:
>
> Hi David
>
>
>
> This is strange we do not see this error on our screens, so it must somehow
> be related to a difference in hardware!
>
>
>
> This is just a wild shoot: could you please try to compare the output from
> doing a ctrl+PrtSc and the output from doing a right click +copy in the
> modelview. I know these should be identical but at least for the text in the
> ModelView, we have seen these to change color on some graphics adapters, so
> maybe this could be something similar.
>
>
>
> I think we will need some hardware details to resolve this issue; we will
> contact you outside the group to exchange these.
>
>
>
> Best regards
>
> Søren, AnyBody Support
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
> Of dww805
> Sent: 24 October 2008 17:52
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Re: anyforce drawing question
>
>
>
> Hi Sylvain,
>
> I tried the bugvector code you wrote and I get the same error. I have
> uploaded 2 picture
> of what I am seeing. bugvector_x.png is when:
> Vec = {somevalueHere, 0,0} and
> Vec = {-somevalueHere,0,0}
>
> bugvector_y.png is when:
> Vec = {0,somevalueHere,0} and
> Vec = {0,-somevalueHere,0}
>
> There is a clear difference. Any other ideas?
>
> Best,
> David
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> AnyScript Support <anyscriptsup@> wrote:
> >
> > Hi David,
> >
> >
> >
> > We checked it again and there is no way to reproduce the error. I have
> > exactly the same version of Anybody (AnyBody version : 3. 0. 3. Build :
> > 14070.26941) and I copy paste the exact code you send previously. But
> > everything is working fine, the vectors are pointing in opposite direction
> > as they should, regardless if the ‘GlobalCoord’ is On or Off.
> >
> > Did you change anything in the model? Even if I can’t see what changes
> could
> > explain this behaviour.
> >
> >
> >
> > So we did a small model displaying forces in opposite direction using the
> > same code (it works fine for us). Could you please try it so we can see if
> > the problem is coming from your model or from the software. The model is
> > bugvector.any.
> >
> >
> >
> > Best regards,
> >
> > Sylvain, AnyBody Support
> >
> >
> >
> >
> >
> > _____
> >
> > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
> Behalf
> > Of dww805
> > Sent: 24. oktober 2008 00:27
> > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > Subject: [AnyScript] Re: anyforce drawing question
> >
> >
> >
> > I have found something that may be the culprit. If I manually set
> > ‘GlobalCoord’ to off (it
> > was by default set to ‘on’), I don’t seem to get the problem documented
> > below. Maybe this
> > will help with reproducing the issue on your end. And whether or not this
> is
> > actually a
> > problem.
> >
> > Best,
> > David
> >
> > — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> > “dww805” <dwwagner@> wrote:
> > >
> > > Hey Sebastian,
> > >
> > > Well it is good that you don’t have the problem (means it probably is
> > something wrong
> > > only on my end). The AnyBody version I am using is:
> > >
> > > AnyBody version : 3. 0. 3.
> > > Build : 14070.26941
> > >
> > > I am uploading a picture of what I am seeing
> (ESARowing_drawVecError.png).
> > No matter
> > if
> > > I use Vec = {-1,0,0}; or Vec = {1,0,0}, I get the vectors pointing in
> the
> > same direction (to
> > > the left, in the positive global X direction).
> > >
> > > Any other thoughts?
> > >
> > > Best,
> > > David
> > >
> > >
> > > — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> > Sebastian Dendorfer <anyscriptsup@> wrote:
> > > >
> > > > Hey David,
> > > >
> > > >
> > > >
> > > > You are right, this sound a little bit strange. I tried to replicate
> > your
> > > > problem and I could not found anything suspicious.
> > > >
> > > > The vectors are actually plotted in the opposite directions, so I’m
> not
> > sure
> > > > how I can help you. Which version of the AMS are you using?
> > > >
> > > >
> > > >
> > > > Best regards,
> > > >
> > > > Sebastian
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _____
> > > >
> > > > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com]
> On
> > Behalf
> > > > Of dww805
> > > > Sent: 23. oktober 2008 01:37
> > > > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > > > Subject: [AnyScript] anyforce drawing question
> > > >
> > > >
> > > >
> > > > Hi AnyBody guys and gals (and anyone else who wants to do some bug
> > testing)
> > > > -
> > > >
> > > > This may be a bug…not quite sure. Let me tell you what is going
> > ‘wrong’
> > > > (beyond what is
> > > > in my head).
> > > >
> > > > I have been playing around with the Rowing Machine Microgravity ESA
> > example
> > > > in
> > > > Repository 7.0. For fun I decided to plot the forces that are being
> > applied
> > > > to the hands
> > > > and the feet. I believe they are in the Loads folder in the
> > Environment.any
> > > > file. I tried
> > > > plotting the forces quickly and I noticed they were pointing in the
> same
> > > > direction. That
> > > > seemed very weird as looking in the model heirarchy, they are clearly
> > the
> > > > negatives of one
> > > > another.
> > > >
> > > > I am copying the Load = { } (see below); folder that goes in the
> > > > Environment.any file that I
> > > > have been using. I have created 2 scenarios (see how Vec = {} is
> defined
> > in
> > > > each of the
> > > > drawing functions). The first one (i.e. Vec = {1,0,0} and Vec =
> > {-1,0,0}),
> > > > for me, produces
> > > > vectors pointing in the same direction. The second one (i.e. Vec =
> > {0,1,0}
> > > > and Vec = {0,-
> > > > 1,0}) produces vectors pointing in opposite directions. I changed the
> > point
> > > > of application
> > > > to the same reference frame, and got the same result. It seems as if
> the
> > x
> > > > coordinate in
> > > > the plot function is ignoring the sign??
> > > >
> > > > Hopefully I am doing something wrong and you can show me the error in
> my
> > > > ways. If not,
> > > > we can talk about my compensation.
> > > >
> > > > Here is the code:
> > > >
> > > > AnyFolder Load ={
> > > >
> > > >
> > > > AnyFunInterpol Force =
> > > > {
> > > > Type = Bspline;
> > > > BsplineOrder = 4;
> > > > FileName = “ReacForcesCase1.txt”;
> > > > };
> > > >
> > > >
> > > > AnyForce PushPullUnitForce =
> > > > {
> > > > F = .Force(t)(-1);
> > > > AnyPrismaticJoint &PushPullJoint =
> > > > Main.Model.ModelEnvironmentConnection.Joints.PushPullGuideJnt;
> > > >
> > > > //draw the force…
> > > > AnyDrawVector drF = {
> > > > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > > > Vec = {1,0,0}; // Does not point in the opposite direction as the
> force
> > > > below
> > > > // Vec = {0,1,0}; // Does point in the opposite direction as the force
> > below
> > > >
> > > > 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;
> > > > AnyRefFrame &Palm =
> > > > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > > > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > > > };
> > > >
> > > > };
> > > >
> > > > //force applied to a kinematic measure defined by a prismatic joint
> > > > AnyForce FootRestForce =
> > > > {
> > > > F = .Force(t)
(1);
> > > > AnyPrismaticJoint &FootRestJoint =
> > > > Main.Model.ModelEnvironmentConnection.Joints.FootRestGuideJnt;
> > > >
> > > >
> > > > //draw the force…
> > > > AnyDrawVector drF = {
> > > > //Vec = {.Fout[0]/500,0,0}; // Scale the length down
> > > >
> > > > Vec = {-1,0,0}; //does not point in the opposite direction as the
> force
> > > > above
> > > > //Vec = {0,-1,0}; //does point in the opposite direction as the force
> > above
> > > >
> > > > Line = {
> > > > Style = Line3DStyleFull;
> > > > Thickness = 0.01;
> > > > RGB = {0, 1, 0};
> > > > End = {
> > > > Style = Line3DCapStyleArrow; // This specifies the end to be an
> > arrowhead
> > > > RGB = {0, 1, 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;
> > > > AnyRefFrame &Palm =
> > > > Main.Model.EnvironmentModel.Seg.FootRestSeg.FootRestLinearGuideNode;
> > > > //AnyRefFrame &Palm =
> > > > Main.Model.EnvironmentModel.Seg.GrabStickSeg.PushPullJtNode;
> > > > //AnyRefFrame &Palm = Main.Model.EnvironmentModel.GlobalRef;
> > > > };
> > > > };
> > > >
> > > >
> > > > }; //Load
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>