"Mixed" Dynamics through OpenSim API
Posted: Sun Jan 03, 2016 1:41 pm
I would like to do "mixed" dynamics through the OpenSim API, where I prescribe the motion of all DOFs in my model EXCEPT for the motion of the pelvis "root" segment, which I want to numerically integrate using my own fixed-step integration method (so I know a priori all time points where the state derivatives will be needed). However, I can't figure out how to do it.
From what I can see on-line, the function below will give me the state derivatives for the 6 pelvis DOFs:
https://simtk.org/api_docs/opensim/api_ ... 3dc9c41d17
However, from what I can tell, the only way to input the q, u, and udot values at each instant in time for the prescribed coordinates is through the use of a prescribed function defined as part of the model itself:
https://simtk.org/api_docs/opensim/api_ ... 7fd0c5f78d
I am going to do my numerical integration outside of OpenSim and thus do not want to use OpenSim prescribed functions. For any time instant, I want to be able to give my model the q, u, and udot values for the prescribed coordinates along with the state for the pelvis (and all applied loads) and then have the state derivative function return the state derivatives for the 6 pelvis DOFs along with the inverse dynamic moments for the prescribed DOFs.
Is there some way to do a "mixed" dynamics solution like this with existing OpenSim API functionality? Sherm seemed to think that there was a way to input q, u, and udot values for prescribed coordinates at a single point in time, but after looking through the OpenSim API on-line documentation, it is not clear to me that it is possible.
Thanks for any insight that anyone can provide on this question.
B.J.
From what I can see on-line, the function below will give me the state derivatives for the 6 pelvis DOFs:
https://simtk.org/api_docs/opensim/api_ ... 3dc9c41d17
However, from what I can tell, the only way to input the q, u, and udot values at each instant in time for the prescribed coordinates is through the use of a prescribed function defined as part of the model itself:
https://simtk.org/api_docs/opensim/api_ ... 7fd0c5f78d
I am going to do my numerical integration outside of OpenSim and thus do not want to use OpenSim prescribed functions. For any time instant, I want to be able to give my model the q, u, and udot values for the prescribed coordinates along with the state for the pelvis (and all applied loads) and then have the state derivative function return the state derivatives for the 6 pelvis DOFs along with the inverse dynamic moments for the prescribed DOFs.
Is there some way to do a "mixed" dynamics solution like this with existing OpenSim API functionality? Sherm seemed to think that there was a way to input q, u, and udot values for prescribed coordinates at a single point in time, but after looking through the OpenSim API on-line documentation, it is not clear to me that it is possible.
Thanks for any insight that anyone can provide on this question.
B.J.