Inverse Dynamic
Posted: Mon Nov 23, 2020 7:00 am
Hello guys
I want to know if how I define the acceleration vector (u_dot) for the following code in Matlab
ID = InverseDynamicsSolver(Model);
uS = Model.getNumSpeeds();
u_dot = Vector(uS,1)
ID.solve(state,u_dot)
In the above code I defined : u_dot = Vector(uS,1). this code yields:
~[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
but I define the acceleration vector with different values. like: [10 8 1 14 10 15 1 1 1 51 1 61 1 1 1 74 1 7 1 1 -1 1 1]
by Vector(uS,1) I just defined only value. How do I get it?
Thanks
I want to know if how I define the acceleration vector (u_dot) for the following code in Matlab
ID = InverseDynamicsSolver(Model);
uS = Model.getNumSpeeds();
u_dot = Vector(uS,1)
ID.solve(state,u_dot)
In the above code I defined : u_dot = Vector(uS,1). this code yields:
~[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
but I define the acceleration vector with different values. like: [10 8 1 14 10 15 1 1 1 51 1 61 1 1 1 74 1 7 1 1 -1 1 1]
by Vector(uS,1) I just defined only value. How do I get it?
Thanks