Search found 11 matches

by Charles Yin
Thu Jan 23, 2020 1:56 am
Forum: OpenSim
Topic: Rplacement of muscle
Replies: 2
Views: 326

Re: Rplacement of muscle

Thanks a lot, Vinay.
According to the instructions, I have solved my problem.
Regards.


-Charles.
by Charles Yin
Mon Jan 20, 2020 6:28 am
Forum: OpenSim
Topic: Rplacement of muscle
Replies: 2
Views: 326

Rplacement of muscle

Hello,
I want to ask the experts about the problem of replacement of muscles.
For example, I want to update the 'Thelen2003muscle' with 'Millard2012muscle', is there any functions in api for solving it?
Also, what about the earlier 'Schutle1993Muscle_Deprecated' .
Thanks!
by Charles Yin
Mon Dec 16, 2019 2:47 pm
Forum: OpenSim
Topic: Discrete State Variables
Replies: 0
Views: 130

Discrete State Variables

Hello, When I search the api opensim 3.3, I found the introduction to ModelComponent interesting, especially these statements: The throttle controls the motor torque output and therefore the behavior of the model. The input by the user to the throttle the motor (the controls) is necessary to specify...
by Charles Yin
Wed Dec 11, 2019 2:27 pm
Forum: OpenSim
Topic: Inconsistency between model::getNumStateVariables and state::getNY()
Replies: 4
Views: 431

Re: Inconsistency between model::getNumStateVariables and state::getNY()

Hello, Yes. They are consistent after delete the bushing force. numStates = 194 and Nstates = 194 Actually, I need to define bushing forces among some bodies (haven't yet decided) in order to constraint two components. I have ever tried with the 'Constraints' function but failed. \ I want to make th...
by Charles Yin
Wed Dec 11, 2019 9:45 am
Forum: OpenSim
Topic: Inconsistency between model::getNumStateVariables and state::getNY()
Replies: 4
Views: 431

Re: Inconsistency between model::getNumStateVariables and state::getNY()

Hello Christopher, I have tested this problem on model 'ToyLandingModel.osim' . I attach my test codes here: 1) For obtaining the number of states from the method 'model::getNumStateVariables()': osimModel = Model('ToyLandingModel.osim'); Nstates = osimModel.getNumStateVariables(); (also, I can get ...
by Charles Yin
Tue Dec 10, 2019 9:51 am
Forum: OpenSim
Topic: Inconsistency between model::getNumStateVariables and state::getNY()
Replies: 4
Views: 431

Inconsistency between model::getNumStateVariables and state::getNY()

Hello, I have met a problem that the number of states obtained from model::getNumStateVariables is inconsistent with the one get from state::getNY() due to the exist of bushing force. Up to my knowledge, state::getNY() will take bushing force into account while the model::getNumStateVariables doesn'...
by Charles Yin
Thu Dec 05, 2019 6:34 am
Forum: OpenSim
Topic: Exceeding of state vector
Replies: 0
Views: 99

Exceeding of state vector

Hello everyone, I have encountered with a problem of state vector. The state vector in OpenSim has the form of x=[q, \dot{q}, a(0), l^M(0), a(1), l^M(1),..., a(n), l^M(n)]^T, whose names can be obtained by 'OpenSim::Component::getStateVariableNames()'. While, from 'SimTK::State::getY()' we can also ...
by Charles Yin
Tue Nov 26, 2019 10:41 am
Forum: OpenSim
Topic: CustomJoint in Matlab
Replies: 6
Views: 629

Re: CustomJoint in Matlab

Hi Ayman, Thanks for your advice. I have delt with this problem. Actually, it was the cause that I misunderstood the 'ArrayStr' as: spatialTrans.updTransformAxis(0).setCoordinateNames(ArrayStr('exo_rotation')); I checked it with the api, and I found the correct form should be 'ArrayStr('exo_rotation...
by Charles Yin
Mon Nov 25, 2019 1:07 pm
Forum: OpenSim
Topic: CustomJoint in Matlab
Replies: 6
Views: 629

Re: CustomJoint in Matlab

Hi Ayman, Now I have succeeded in CustomJoint modeling with C++. Based on your suggestions, creating Osim models with API Doxygen is quite efficient. While, I try to execute the same in Matlab, there is still a problem. For the codes in C++ as below, it worked without problem: CoordinateSet& exoCoor...
by Charles Yin
Fri Nov 22, 2019 3:42 am
Forum: OpenSim
Topic: CustomJoint in Matlab
Replies: 6
Views: 629

Re: CustomJoint in Matlab

Hello Ayman, Thanks for your support. Now I think I have delt with this problem based on your advice. However, I also encounted with the problem underlying coordinates update. The definition of CustomJoint CoordinateSet is different from the others since the number of coordinates is not fixed (from ...