rotation matrix

Hi AnyBody,

I am looking into inputting data into the new repository. Can you give
me the lines of code needed to change the

AnyMat33 Orientation =RotMat(pi,z);

to drive in the positive y and z directions. I have looked on the
tutorials and Ref manual but I haven’t been able to find the solution.

many thanks

Peter

Hi Mike

I am unsure which model you are referring too, but i assume that it is the
GaitUniMiami?

This RotMat is used to rotate the model so that it walks in the positive x
direction, here is the statement from the model.

//This variable controls the orientation of the markers and the environment

//it can be used to rotate it all

//The makers must walk in the positive x direction in order for the
gaitapplication2 to work

//if the experimental data does reflect this it can be changed by this
variable.

AnyMat33 Orientation =RotMat(pi,z);

To have the model walking in the positive y direction I guess this rotation
should be RotMat(1.5*pi,z) and to have it in the z direction I guess it
could be done as

AnyMat33 Orientation =RotMat(pi,z)RotMat(pi0.5,y);

If you look in the file “Trial13.MarkerListMover.any” you will find these
lines

AnyFolder Markers = {

AnyVar ScaleFactor = 0.001000;

AnyFixedRefFrame GlobalRef= {

 Axes=....Orientation;

 AnyDrawRefFrame drw={

   ScaleXYZ={0.1,0.1,0.1};

   RGB={0,0,1};

 };

};

This is one of the locations where this orientation is being used; it is
also used in the “environment.any” file

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of peter.worsley
Sent: 12 May 2008 17:23
To: anyscript@yahoogroups.com
Subject: [AnyScript] rotation matrix

Hi AnyBody,

I am looking into inputting data into the new repository. Can you give
me the lines of code needed to change the

AnyMat33 Orientation =RotMat(pi,z);

to drive in the positive y and z directions. I have looked on the
tutorials and Ref manual but I haven’t been able to find the solution.

many thanks

Peter

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