Search found 58 matches

by Ana de Sousa
Mon Nov 16, 2020 1:51 pm
Forum: OpenSim
Topic: Import OpenSim in Linux
Replies: 3
Views: 390

Re: Import OpenSim in Linux

Hello Ayman, Thank you for your response, I copied all files from the repository, and tested with the following CMakeLists.txt: project(OpenSimTugOfWar) cmake_minimum_required(VERSION 3.2) # Settings. # --------- # set(TARGET exampleMain CACHE TYPE STRING) set(OPENSIM_INSTALL_DIR $ENV{OPENSIM_HOME} ...
by Ana de Sousa
Mon Nov 16, 2020 12:22 pm
Forum: OpenSim
Topic: Import OpenSim in Linux
Replies: 3
Views: 390

Import OpenSim in Linux

Hello, I have some trouble building OpenSim CPP files in Linux. I have already successfully installed OpenSim in Ubuntu 20.04. I know it works because all tests passed, and I can import OpenSim in python files and use functions (when I create the environment variable: export OPENSIM_HOME=~/opensim/i...
by Ana de Sousa
Fri Aug 28, 2020 7:35 am
Forum: Control strategies for functional electrical stimulation (FES) cycling
Topic: Control strategies for functional electrical stimulation (FES) cycling Public Forum
Replies: 16
Views: 1495

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Hello, Yasniary, I don't receive notifications about this forum, that is why I did not answer prior. Those are parts of the model that usually get installed with OpenSim 3.3. I have tested with OpenSim 4.1, but they don't seem to be in the usual place. What I did to open the model, was to copy and p...
by Ana de Sousa
Tue Jun 25, 2019 12:43 pm
Forum: Control strategies for functional electrical stimulation (FES) cycling
Topic: Control strategies for functional electrical stimulation (FES) cycling Public Forum
Replies: 16
Views: 1495

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Hello Tarun Karak, the first step is to follow the instructions to script with Matlab available at https://simtk-confluence.stanford.edu:8443/display/OpenSim33/Scripting+with+Matlab . And after downloading our package, you should follow the steps in README.txt. In case you have any specific problems...
by Ana de Sousa
Fri Jun 14, 2019 2:09 pm
Forum: Control strategies for functional electrical stimulation (FES) cycling
Topic: Control strategies for functional electrical stimulation (FES) cycling Public Forum
Replies: 16
Views: 1495

Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum

Hello Sam, I did not understand what you mean by "sitting". About the durantion of the pulse, this is a simulation in which we approximate the FES stimulation as the excitation of the muscle. In OpenSim this excitation goes from 0 to 1 (1 being the maximum force that the muscle generates). Therefore...
by Ana de Sousa
Thu Apr 18, 2019 7:14 am
Forum: OpenSim
Topic: Update prescribed force
Replies: 4
Views: 408

Re: Update prescribed force

Both options (prescribed and external) are only defined by functions over time?
Is there a way to make it defined over another variable, for example?

For example, something like "if the knee joint is higher than 45 deg, force = 10, otherwise force = 0"?
by Ana de Sousa
Wed Apr 17, 2019 6:06 am
Forum: OpenSim
Topic: Update prescribed force
Replies: 4
Views: 408

Re: Update prescribed force

Thanks for the response.
So, is it a prescribed force? Is there a way to make it dependable to another variable? In a way that I could change it dynamically? (similarly to the way that we can do to a torque in a joint)
by Ana de Sousa
Tue Apr 16, 2019 5:48 am
Forum: OpenSim
Topic: Update prescribed force
Replies: 4
Views: 408

Update prescribed force

Hello, if anyone could help me with this topic. I am able to create this force (at the model), but I do not know how I change it in Matlab, during forward simulation % Create force pelvis_Force = PrescribedForce(pelvis); pelvis_Force.setName('pelvis_force'); pelvis_Force.setForceFunctions(Constant(0...
by Ana de Sousa
Tue Apr 09, 2019 1:09 pm
Forum: OpenSim
Topic: Change forces in Matlab
Replies: 3
Views: 603

Re: Change forces in Matlab

Sorry, actually, I am able to create the force, but I do not know how I change it in Matlab. % Create force pelvis_Force = PrescribedForce(pelvis); pelvis_Force.setName('pelvis_force'); pelvis_Force.setForceFunctions(Constant(0), Constant(250), Constant(0)); % Add the force to the model osimModel.ad...
by Ana de Sousa
Tue Apr 09, 2019 1:05 pm
Forum: OpenSim
Topic: Change forces in Matlab
Replies: 3
Views: 603

Re: Change forces in Matlab

Thank you for the response, Dimitar!

May I ask you how do I use PrescribedForce in Matlab? The example from the link is in cpp, and when I look for the same name in Matlab (PrescribedForce), it does not find it in org.opensim.modeling.*