Exceeding of state vector

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Charles Yin
Posts: 11
Joined: Mon Feb 05, 2018 12:45 am

Exceeding of state vector

Post by Charles Yin » Thu Dec 05, 2019 6:34 am

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 get the continuous states variables.
In most cases, the number of states is equal to the continuous states variables. But when I added a bushing force into the model, the continuous states variables have one more than states.
I know that bushing force is a function of generalized coordinates q and velocities \dot{q}, and now I just want to make them consistent in size.
Is there any advice for adding bushing force (or other variables) into the state vector? I propose this question mainly based on 'OpenSimPlantFunction.m' from the resources 'DynamicWalkingStarter'.
Thanks for your attention and support.

-Charles

Tags:

POST REPLY