»Ø¸´£º [AnyScript] Re: about Using "AnyKinEqInterPolDriver"

thanks. From your reply I knew that I would learn anybody quickly with your
help.
I copyed the program to the blow. when I run it, the system told me that :
“Move_plate.Data”-the matrix must contain the same number of columns as T has
elements.

Acturally, I had did it I think. And what is thedata of the class
“AnyKinEqInterPolDriver” format? I want to know clearly

AnyBody Support <support@anybodytech.com>
Hi Alec

Welcome to the group

Here is a small example from the top of my head…

AnyPrismaticJoint jnt =
{
Axis = z;
AnyRefFrame &<Insert name0> = …node1?;
AnyRefFrame &<Insert name1> = …node2?;
};
AnyKinEqInterPolDriver interpolationdriver =
{
Type = bSpline;
BsplineOrder = 4;
T = {0,1,2,3,4}; //time vector from 0 to 4 sec
Data = {{0,1,2,3},{0,1,2,3}}; //example of data
//FileName = “”; //you can also use a file instead of the two
lines above!!
AnyKinMeasure &ref = .jnt; //reference to the joint above…
}; //end interpoldriver

As you might know there are a number of tutorials available on the
web, see for example http://www.anybodytech.com/701.0.html
they might be helpful…

Please ask again if you have further questions.

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, “yueningma” <yueningma@…> wrote:
>
> hello everyone.
> I am doing a project recently. And I want to know how to use the
class
> “AnyKinEqInterPolDriver” to drive the Prismatic joint with data
>
> wishing every one a good day.
> waiting your reply everytime.
> alec
> 4 Oct 2007
>


@yahoo.cn

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

Hi Alec

I did a small mistake in the script i wrote last time here is a
revised version:

// Todo: Write a small description of your model here

Main = {

// The actual body model goes in this folder
AnyFolder MyModel = {

 // Global Reference Frame
 AnyFixedRefFrame GlobalRef = {

   // Todo: Add points for grounding of the model here

 };  // Global reference frame

 AnySeg Mass={
   Mass=0;
   Jii={0,0,0};
 };
 AnyPrismaticJoint jnt =
 {
   Axis = z;
   AnyRefFrame &ref1 = .GlobalRef;
   AnyRefFrame &ref2 =.Mass;
 };
 AnyKinEqInterPolDriver interpolationdriver =
 {
   Type = Bspline;
   BsplineOrder = 4;
   T = {0,1,2,3}; //time vector from 0 to 4 sec
   Data = {{0,1,2,3}}; //example of data
   //FileName = ""; //you can also use a file instead of the two

lines above!!
AnyKinMeasure &ref = .jnt; //reference to the joint above…
}; //end interpoldriver

}; // MyModel

// The study: Operations to be performed on the model
AnyBodyStudy MyStudy = {
AnyFolder &Model = .MyModel;
RecruitmentSolver = MinMaxSimplex;
Gravity = {0.0, -9.81, 0.0};
tEnd=3;
};

}; // Main

So as you can see the data object needs only one vector of values
since the prismatic joint has only one dof. The number of rows
in “Data” needs to match the number of driven dofs by the driver.

Best regards
Søren

— In anyscript@yahoogroups.com, yuening ma <yueningma@…> wrote:
>
> thanks. From your reply I knew that I would learn anybody quickly
with your help.
> I copyed the program to the blow. when I run it, the system told
me that :
> “Move_plate.Data”-the matrix must contain the same number of
columns as T has elements.
>
> Acturally, I had did it I think. And what is thedata of the
class “AnyKinEqInterPolDriver” format? I want to know clearly
>
> AnyBody Support <support@…>
> Hi Alec
>
> Welcome to the group
>
> Here is a small example from the top of my head…
>
> AnyPrismaticJoint jnt =
> {
> Axis = z;
> AnyRefFrame &<Insert name0> = …node1?;
> AnyRefFrame &<Insert name1> = …node2?;
> };
> AnyKinEqInterPolDriver interpolationdriver =
> {
> Type = bSpline;
> BsplineOrder = 4;
> T = {0,1,2,3,4}; //time vector from 0 to 4 sec
> Data = {{0,1,2,3},{0,1,2,3}}; //example of data
> //FileName = “”; //you can also use a file instead of the two
> lines above!!
> AnyKinMeasure &ref = .jnt; //reference to the joint above…
> }; //end interpoldriver
>
> As you might know there are a number of tutorials available on the
> web, see for example http://www.anybodytech.com/701.0.html
> they might be helpful…
>
> Please ask again if you have further questions.
>
> Best regards
> Søren, AnyBody Support
>
> — In anyscript@yahoogroups.com, “yueningma” <yueningma@> wrote:
> >
> > hello everyone.
> > I am doing a project recently. And I want to know how to use the
> class
> > “AnyKinEqInterPolDriver” to drive the Prismatic joint with data
> >
> > wishing every one a good day.
> > waiting your reply everytime.
> > alec
> > 4 Oct 2007
> >
>
>
>
>
>
>
> ---------------------------------
> @yahoo.cn
>
> [Non-text portions of this message have been removed]
>