Joint Load Optimization Plugin

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Joint Load Optimization Plugin

Post by Karthick Ganesan » Fri Apr 20, 2018 3:24 am

Dear All,
How to install joint load optimization plugin? Please let me know.
Thanks & Regards,
Karthick.

User avatar
Thomas Uchida
Posts: 1789
Joined: Wed May 16, 2012 11:40 am

Re: Joint Load Optimization Plugin

Post by Thomas Uchida » Fri Apr 20, 2018 6:36 pm

The Confluence documentation has a couple pages on plugins:
- "Using Plugins" - https://simtk-confluence.stanford.edu/d ... ng+Plugins
- "Creating Plugins" - https://simtk-confluence.stanford.edu/d ... ng+Plugins

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: Joint Load Optimization Plugin

Post by Karthick Ganesan » Mon Apr 23, 2018 6:53 am

Dear Tom,
Thanks for your reply. I went through the documentation and followed the procedure. But I got errors while building in Visual Studio. I am using opensim 3.3 and Visual studio express 2013 for windows desktop. I could build analysis plugin example without error. A screenshot of the error is attached. What could be the issue. Please let me know.

Thanks & Regards,
Karthick
Error Visual Studio.png
Error Visual Studio.png (61.64 KiB) Viewed 1261 times

User avatar
Thomas Uchida
Posts: 1789
Joined: Wed May 16, 2012 11:40 am

Re: Joint Load Optimization Plugin

Post by Thomas Uchida » Mon Apr 23, 2018 2:17 pm

Difficult to say exactly without seeing the code. Based on errors 1 and 2, you are trying to modify a value returned by a getXXX() method (you may need to use the updXXX() version of the method instead, depending on what you are trying to do). Not sure about errors 3 and 5; perhaps you're missing #include <OpenSim.h>? Based on the text in the last column, you are building DeMersOptimizationPlugin, which I presume you downloaded from a simtk project. Was that code designed to work with OpenSim 3.3?

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: Joint Load Optimization Plugin

Post by Karthick Ganesan » Tue Apr 24, 2018 12:01 am

Yes. I downloaded the source code from Simtk project page.
https://simtk.org/projects/jointloadopt
I am not sure whether the code was designed to work with opensim 3.3. I could not find this information in the project page. How can I find that information?

User avatar
Thomas Uchida
Posts: 1789
Joined: Wed May 16, 2012 11:40 am

Re: Joint Load Optimization Plugin

Post by Thomas Uchida » Tue Apr 24, 2018 1:41 am

The citation provided on the simtk project page is for a paper that was published in 2014. OpenSim 3.3 was not released until July 2015 and it's unlikely that the code has been updated.

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: Joint Load Optimization Plugin

Post by Karthick Ganesan » Thu Apr 26, 2018 9:25 am

I could build the source code successfully with opensim 3 and VC10Pro. It is installed in the plugins directory. But I could not load the plugin. It says " unable to load library DeMersOptimizationPlugin. Plugin not loaded". What could be the problem.

User avatar
Thomas Uchida
Posts: 1789
Joined: Wed May 16, 2012 11:40 am

Re: Joint Load Optimization Plugin

Post by Thomas Uchida » Thu Apr 26, 2018 9:45 am

Could be a compatibility issue: the plugin must be built with the same version of Visual Studio as the OpenSim distribution. Please see the "Creating Plugins" page in the Confluence documentation (https://simtk-confluence.stanford.edu/d ... ng+Plugins).

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: Joint Load Optimization Plugin

Post by Karthick Ganesan » Thu Apr 26, 2018 11:28 pm

I built the plugin with compatible version of visual studio and opensim: OpenSim 3.0 VC10P and Visual Studio 2010 Professional.

User avatar
Thomas Uchida
Posts: 1789
Joined: Wed May 16, 2012 11:40 am

Re: Joint Load Optimization Plugin

Post by Thomas Uchida » Fri Apr 27, 2018 12:10 am

How did you determine that the plugin should be built with OpenSim 3.0? The "Initial release" date on the simtk project page is January 1, 2014, so I would have expected it to use version 3.1.

POST REPLY