Search found 99 matches

by Sina Porsa
Tue Jun 18, 2013 6:21 pm
Forum: OpenSim
Topic: How can I realize the system to a new stage? - MatLab API
Replies: 7
Views: 1832

Re: How can I realize the system to a new stage? - MatLab AP

Hi Ayman,
I was just wondering if you have any suggestions for me regarding this problem?
Thanks
Sina
by Sina Porsa
Tue Jun 04, 2013 9:02 pm
Forum: OpenSim
Topic: I cannot include OpenSim.h in my mex file
Replies: 2
Views: 922

Re: I cannot include OpenSim.h in my mex file

Thank you Ilan, it is working now!
by Sina Porsa
Sun Jun 02, 2013 7:00 pm
Forum: OpenSim
Topic: I cannot include OpenSim.h in my mex file
Replies: 2
Views: 922

I cannot include OpenSim.h in my mex file

Hi everyone, I am trying to create a mex file so that I can call opensim functions from MatLab. My test.cpp file is as below: #include "mex.h" #include <OpenSim/OpenSim.h> using namespace OpenSim; using namespace SimTK; void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {...
by Sina Porsa
Thu May 30, 2013 4:34 pm
Forum: OpenSim
Topic: How can I realize the system to a new stage? - MatLab API
Replies: 7
Views: 1832

Re: How can I realize the system to a new stage? - MatLab AP

Hi Ayman and Thank you I have described my method in one of my old posts: https://simtk.org/forums/viewtopic.php?f=91&t=3932&p=8872&hilit=realize+acceleration#p8872 I was wondering if it is possible to do the same thing using MatLab API? Here is a brief description of what I need: I need a function ...
by Sina Porsa
Tue May 28, 2013 9:38 pm
Forum: OpenSim
Topic: How can I realize the system to a new stage? - MatLab API
Replies: 7
Views: 1832

How can I realize the system to a new stage? - MatLab API

Hi Everyone,
I was wondering if it is possible to realize the system to a new stage, using MatLab API?
In C++ i use this:

Code: Select all

model.getMultibodySystem().realize(state, Stage::Acceleration);
Is there any similar method available, if I want to use matlab API?
Thanks
Sina
by Sina Porsa
Mon May 27, 2013 10:02 pm
Forum: OpenSim
Topic: how can i set initial states in forward dynamics-MatLab API
Replies: 1
Views: 502

how can i set initial states in forward dynamics-MatLab API

Hi All I want to set the initial states (joint angles and velocities) to specific values and use forward dynamics to integrate the equations of motion forward in time. I am using MatLab API. here is my script: system = osimModel.initSystem(); modelCoordinateSet = osimModel.updCoordinateSet(); modelC...
by Sina Porsa
Mon May 27, 2013 9:40 pm
Forum: OpenSim
Topic: Using import org.opensim.modeling.*
Replies: 9
Views: 3538

Re: Using import org.opensim.modeling.*

Hi All
I just understood how to solve the problem.
If i launch MatLab from start menu and the change MatLab working directory to the folder which contains the m files, everything will work. But if I double click on the m file to launch MatLab, it returns the above mentioned error.
by Sina Porsa
Sun May 26, 2013 8:59 pm
Forum: OpenSim
Topic: Using import org.opensim.modeling.*
Replies: 9
Views: 3538

Re: Using import org.opensim.modeling.*

Hi Anthony, I'd recommend you follow the steps on the support site below for version 3.0 as they're more updated. http://simtk-confluence.stanford.edu:8080/display/OpenSim/Scripting+with+Matlab Your error message suggests that the OpenSim dlls are not found on your path, while the jar file has been...
by Sina Porsa
Thu Apr 11, 2013 5:02 pm
Forum: OpenSim
Topic: How can I terminate FD integration before the final time?
Replies: 1
Views: 404

How can I terminate FD integration before the final time?

Hi everyone
I am an API user and I was wondering if there is a way to terminate forward dynamic integration before reaching to the preset "Final Time".
For example is there any way to terminate the integration if a parameter (e.g hip angle) reaches to a limit value?
Thanks
Sina
by Sina Porsa
Wed Apr 03, 2013 9:51 pm
Forum: OpenSim
Topic: Why does HuntCrossleyForce apply torques?
Replies: 3
Views: 710

Re: Why does HuntCrossleyForce apply torques?

Hi Sherman,
I am using a couple of contact spheres on the sole of foot to model the foot-ground contact and obviously the contact spheres are not at foot origin(foot centre of mass).
So this is only reporting the rXf vector an these torques are not applied to the foot? am I right?
Thanks,
Sina