# Define joint and input joint angle

Hi, all

I have another question this time. I defined ankle joint as a universal
joint with x and z axis. And I want to input joint angles and time to
generate simple motion. But, in 2D motion, I only should input 1 column
of angle data because the ankle joint is revolute joint in 2D motion,
and it worked. But, in 3D motion, I’m little confusing how to input the
angle data when the joint is universal joint.
In 2D motion, the angle data were put like this, when the time is {0,
0.01, 0.02, 0.03, 0.04} :
AnyKinEqInterPolDriver AnkleDriver = {
AnyRevoluteJoint &ShankFootJoint = Main.FootModel.JointLeg.AnkleJnt;
T = .Time;
Type = Bspline;
Data = {{56.624,
61.875,
62.196,
61.887,
64.953}};
};

Then, if I want to put angle data for universal joint, how should make
the script? My solutions was, put the data in 2 columns like this :
{56.624, 11.24}, {61.875, 12.345}…but it didn’t work. What should I

Oh, and here is another question. Finally, I want to input 3-direction
ground reation force data. Is it possible to input them when I
developed the model in 2D, which means the model ignored motions of
other dirctions but of only 1 plane? Thank you very much for
everything~ happy new year~

Hi
I’m a user I had such a problem in shoulder. Finally I eliminatedÂ drivers on my
joint and apllied motion profile data from a txt file on the node which joint is
defined, like what explained for marker in tutorial.
good luck

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

Hi,

To apply an AnyKinEqInterPolDriver to a universal joint the Data member must
contain 2 vectors as there are 2 degrees of freedom in the joint. The
correct way to write it is the following:

Data = {{… angle data for the first axis .}, {. angle data for the second
axis .}};

So with the data of your example it should look like this:

Data = {{56.624, 61.875, 62.196, 61.887, 64.953}, {11.24, 12.345, …}};

About the second question, if you have 3D ground reaction data then you
should remove one component before applying it to a 2D model and keep only
the 2 components that are on the working plane.

Best regards,

Sylvain, AnyBody Support

From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of cizofu11
Sent: 11. januar 2009 13:30
To: anyscript@yahoogroups.com
Subject: [AnyScript] Define joint and input joint angle

Hi, all

I have another question this time. I defined ankle joint as a universal
joint with x and z axis. And I want to input joint angles and time to
generate simple motion. But, in 2D motion, I only should input 1 column
of angle data because the ankle joint is revolute joint in 2D motion,
and it worked. But, in 3D motion, I’m little confusing how to input the
angle data when the joint is universal joint.
In 2D motion, the angle data were put like this, when the time is {0,
0.01, 0.02, 0.03, 0.04} :
AnyKinEqInterPolDriver AnkleDriver = {
AnyRevoluteJoint &ShankFootJoint = Main.FootModel.JointLeg.AnkleJnt;
T = .Time;
Type = Bspline;
Data = {{56.624,
61.875,
62.196,
61.887,
64.953}};
};

Then, if I want to put angle data for universal joint, how should make
the script? My solutions was, put the data in 2 columns like this :
{56.624, 11.24}, {61.875, 12.345}…but it didn’t work. What should I