Search found 11 matches
- Fri Aug 07, 2020 9:20 am
- Forum: OpenSim
- Topic: Static Optimization API
- Replies: 2
- Views: 524
Re: Static Optimization API
Thank you for posting that example. I read through it. It seemed that this code used an XML document in conjunction with the AnalysisTool class to perform Static Optimization. Do you know if it is possible to actually use the StaticOptimization class in the C++ code as outlined here: https://simtk.o...
- Wed Aug 05, 2020 8:50 am
- Forum: OpenSim
- Topic: Static Optimization API
- Replies: 2
- Views: 524
Static Optimization API
Hello, I am trying to use Static Optimization to solve for muscle forces in a model given a kinematic path. I am using the API. I read through the Doxygen documentation about the StaticOptimization class, but I still have a few questions. I am unsure how to apply an external force to a model. I trie...
- Mon Aug 03, 2020 2:15 pm
- Forum: OpenSim
- Topic: Access Muscles
- Replies: 10
- Views: 2344
Re: Access Muscles
Ok, I will try those. From a physical standpoint (not a computer science standpoint) what is the difference between the active fiber force, the passive fiber force, and the tendon force, and in general how are these values calculated?
Joel
Joel
- Fri Jul 31, 2020 5:00 pm
- Forum: OpenSim
- Topic: Inverse Dynamics API
- Replies: 0
- Views: 169
Inverse Dynamics API
Hello, I have some questions about the Inverse Dynamics system on the API. What does the program consider to be the design variables, is it the coordinates of the model? If so, in order to make it work, would u_dot just be the acceleration of all the coordinates in the order that they are listed in ...
- Thu Jul 30, 2020 11:26 am
- Forum: OpenSim
- Topic: Access Muscles
- Replies: 10
- Views: 2344
Re: Access Muscles
I am trying to learn about these functions using the SimpleOptimizationExample, because it is set up better than my code. I added a few lines and took a screen shot of them. It seemed that the muscles in this program work properly. I was able to add line 77 to display the muscle activation. This see...
- Fri Jul 24, 2020 8:17 am
- Forum: OpenSim
- Topic: Access Muscles
- Replies: 10
- Views: 2344
Re: Access Muscles
getFiberForce did not work. I will work on creating a simpler code example.
Joel
Joel
- Mon Jul 20, 2020 11:43 am
- Forum: OpenSim
- Topic: Access Muscles
- Replies: 10
- Views: 2344
Re: Access Muscles
Thank you for your response, I have attached a copy of my code for reference. I can get the visualizer to iterate through multiple states. These states are generated from data in a csv file. I have also attached the csv file. I am using the model: MoBL_ARMS_module2_4_allmuscles.osim from: https://si...
- Fri Jul 17, 2020 10:44 am
- Forum: OpenSim
- Topic: Access Muscles
- Replies: 10
- Views: 2344
Re: Access Muscles
I tried some of those functions, but when the program reaches them as it is executing, it stops. I do not know why.
Joel
Joel
- Fri Jul 17, 2020 10:15 am
- Forum: OpenSim
- Topic: Access Muscles
- Replies: 10
- Views: 2344
Access Muscles
Hello, I am using a model for a simulation. I have defined different states, and I would like to be able to read the forces, tendon lengths, etc at each state. The model uses Schutte1993Muscle_Deprecated muscles. I am able to see the names of these muscles by using: model_1.getMuscles().get(i).getNa...
- Fri Jul 17, 2020 8:59 am
- Forum: OpenSim
- Topic: Visualize Frame Axes
- Replies: 3
- Views: 406
Re: Visualize Frame Axes
I was unable to get that code to work. I tried it both before and after the setUseVisualizer(true) command, but the axes were plotted both times. I also tried turning them off from the visualizer window, but that did not work either. Do you have any suggestions on what I am doing wrong? Thanks, Joel