Search found 5 matches

by Sina Porsa
Wed Nov 21, 2018 11:19 pm
Forum: OpenSim
Topic: non-acurate pelvis velocities in local frame. Is this due to Gimbal lock?
Replies: 2
Views: 497

non-acurate pelvis velocities in local frame. Is this due to Gimbal lock?

Hi everyone. I am trying to solve a problem where I need to calculate Angular velocities in local frames. I just realized that pelvis's orientation can affect it's local angular velocities which does not make sense to me. Please take a look at thesimplified MATLAB script. In this case my model has 1...
by Sina Porsa
Tue Nov 20, 2018 2:49 pm
Forum: OpenSim
Topic: MATLAB API cannot find vtp files
Replies: 2
Views: 392

Re: MATLAB API cannot find vtp files

Thanks James, yes it solved the problem.
For anyone else who may have the same issue: this is the default path for windows users: c:\OpenSim4.0\Geometry\
by Sina Porsa
Mon Nov 19, 2018 2:54 pm
Forum: OpenSim
Topic: MATLAB API cannot find vtp files
Replies: 2
Views: 392

MATLAB API cannot find vtp files

I have recently installed OpenSim4.0 andconverted my osim files and I can open them in GUi, but whenever I run my matlab api scripts it says it cannot find any of my vtp files. I know it will not effect my calculations but it's annoying as it keeps printing on command window whenever I load a model ...
by Sina Porsa
Wed Oct 17, 2018 2:09 pm
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1987

Re: Export Bone Geometry to .STL For Each Frame

Was wondering if it's any methods available in MATLAB API to calculate velocity of a body in the global frame? I think you're looking for the getVelocityInGround() method, which is inherited from the Frame class ( https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1Frame.html#a74bf6788630d1...
by Sina Porsa
Tue Oct 16, 2018 9:39 pm
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1987

Re: Export Bone Geometry to .STL For Each Frame

Depends on what version of OpenSim you want to use. I would recommend using the 4.0 Beta API since there are convenience methods added to do this. The below code would give you the position and orientation of the OpenSim body in the Global. import org.opensim.modeling.* model = Model('gait2392_thel...