Search found 21 matches

by Vinh Nguyen
Wed Nov 21, 2018 8:26 am
Forum: OpenSim
Topic: Different results when using different OpenSim versions
Replies: 4
Views: 690

Re: Different results when using different OpenSim versions

Hi Dr. Uchida, The differences are only in the derivatives of velocities and the derivatives of muscle lengths. The derivatives of positions and and the derivatives of muscle activations are the same for both OpenSim versions. And here is an sample of the derivatives of the velocities: OpenSim 3.3: ...
by Vinh Nguyen
Tue Nov 20, 2018 9:53 am
Forum: OpenSim
Topic: Different results when using different OpenSim versions
Replies: 4
Views: 690

Re: Different results when using different OpenSim versions

Thanks Dr. Uchida for your reply. I was able to open the model subject01.osim in OpenSim 4.0. I did not get any warning about motion types. I tried to change the motion type of "knee_angle_r" and "knee_angle_l" in the model from "rotational" to "coupled". Then when I opened in OpenSim 4.0, I got the...
by Vinh Nguyen
Mon Nov 19, 2018 3:06 pm
Forum: OpenSim
Topic: Different results when using different OpenSim versions
Replies: 4
Views: 690

Different results when using different OpenSim versions

Hi, I am working on a Matlab script that calculates state derivatives of the model, given the state and control inputs. This is a part of my optimization simulation. When I used the script on some simple models (TugofWar, arm26, leg6dof9musc), the results on OpenSim 4.0 and OpenSim 3.3 are the same....
by Vinh Nguyen
Wed Apr 11, 2018 5:15 pm
Forum: OpenSim
Topic: Develop a Probe plugin
Replies: 2
Views: 250

Re: Develop a Probe plugin

Thank you, Dimitar.

I got it worked.

Vinh
by Vinh Nguyen
Wed Apr 04, 2018 1:11 pm
Forum: OpenSim
Topic: Develop a Probe plugin
Replies: 2
Views: 250

Develop a Probe plugin

Hello, I am trying to write a probe plugin which calculates the muscle metabolic cost. My calculation has a small difference compared to the built-in Umberger2010MuscleMetabolicsProbe of OpenSim. I have my set up that works well for the plugin example tutorials. Now, with the same set up, I copy the...
by Vinh Nguyen
Thu Dec 15, 2016 11:12 am
Forum: OpenSim
Topic: Error load plugin in Matlab
Replies: 7
Views: 993

Re: Error load plugin in Matlab

Thank you Tom, I just figured out I always tried to create a new instance of plugin when I tested using Model.LoadOpenSimLibrary() command. That is why I got error. I loaded a .osim file that uses the plugin and try to read, modify it. It works perfectly now! I think that would be good if I summariz...
by Vinh Nguyen
Wed Dec 14, 2016 7:42 pm
Forum: OpenSim
Topic: Error load plugin in Matlab
Replies: 7
Views: 993

Re: Error load plugin in Matlab

Well, it does not work because OpenSim 3.3 source zip does not contain file for working with Matlab. http://simtk-confluence.stanford.edu:8080/display/OpenSim/Building+OpenSim+from+Source Come back to the issue of using plugin with Matlab, my concern is what kind of plugin class that can be used in ...
by Vinh Nguyen
Wed Dec 14, 2016 3:48 pm
Forum: OpenSim
Topic: Error load plugin in Matlab
Replies: 7
Views: 993

Re: Error load plugin in Matlab

I will try and let you know if it works.
Thanks again.
by Vinh Nguyen
Wed Dec 14, 2016 2:05 pm
Forum: OpenSim
Topic: Error load plugin in Matlab
Replies: 7
Views: 993

Re: Error load plugin in Matlab

Thank you very much for your response, Tom. I had added directory containing the plugin to the "librarypath". For the CoupledBushingForce, if I have OpenSim source code, add the CoupledBushingForce into Actuator folder, use CMake to create the solution and then build the OpenSim. Do you think this w...
by Vinh Nguyen
Wed Dec 14, 2016 10:51 am
Forum: OpenSim
Topic: Error load plugin in Matlab
Replies: 7
Views: 993

Error load plugin in Matlab

Hi, Sorry for bringing a old topic. I am trying to build the tutorial of plugin an Analysis tool and CoupledBushingForce provided by OpenSim. I am able to use them in OpenSim GUI. But they does not work in Matlab. Although I have read some other related posts: https://simtk.org/plugins/phpBB/viewtop...